package com.qianwen.smartman.modules.perf.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import java.util.List; import com.qianwen.core.boot.ctrl.BladeController; import com.qianwen.core.scanner.modular.annotation.PostResource; import com.qianwen.core.scanner.modular.stereotype.ApiResource; import com.qianwen.core.secure.annotation.PreAuth; import com.qianwen.core.tool.api.R; import com.qianwen.smartman.modules.perf.service.IEmployeeOnOffWorkService; import com.qianwen.smartman.modules.perf.vo.CurrWorkDetailVO; import com.qianwen.smartman.modules.perf.vo.CurrWorkLogVO; import com.qianwen.smartman.modules.perf.vo.EmployeeOnOffWorkVO; import com.qianwen.smartman.modules.perf.vo.QueryEmployeeLogVO; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; @Api(value = "员工上下线日志", tags = {"员工上下线日志controller"}) @ApiResource({"blade-perf/log"}) @RestController /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/perf/controller/EmployeeOnOffWorkLogController.class */ public class EmployeeOnOffWorkLogController extends BladeController { private final IEmployeeOnOffWorkService onOffWorkService; public EmployeeOnOffWorkLogController(final IEmployeeOnOffWorkService onOffWorkService) { this.onOffWorkService = onOffWorkService; } @ApiOperationSupport(order = 1) @PostResource({"/query"}) @ApiOperation("查看工位日志") @PreAuth public R> queryOnOffLog(@RequestBody QueryEmployeeLogVO vo) { return R.data(this.onOffWorkService.queryOnOffLog(vo)); } @ApiOperationSupport(order = 2) @PostResource({"/curr-work"}) @ApiOperation("当前工位登录人员前十名") public R> currWorkLog(@RequestBody CurrWorkLogVO vo) { return R.data(this.onOffWorkService.currWorkLog(vo)); } }