yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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<IPage<EmployeeOnOffWorkVO>> queryOnOffLog(@RequestBody QueryEmployeeLogVO vo) {
        return R.data(this.onOffWorkService.queryOnOffLog(vo));
    }
 
    @ApiOperationSupport(order = 2)
    @PostResource({"/curr-work"})
    @ApiOperation("当前工位登录人员前十名")
    public R<List<CurrWorkDetailVO>> currWorkLog(@RequestBody CurrWorkLogVO vo) {
        return R.data(this.onOffWorkService.currWorkLog(vo));
    }
}