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
47
48
49
50
51
52
53
54
55
56
57
package com.qianwen.smartman.modules.perf.controller;
 
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
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.cps.vo.EmployeeVO;
import com.qianwen.smartman.modules.perf.dto.WorkstationBO;
import com.qianwen.smartman.modules.perf.service.IEmployeePerfService;
import com.qianwen.smartman.modules.perf.vo.SearchEmployeeWorkVO;
import com.qianwen.smartman.modules.perf.vo.SearchPerfVO;
import com.qianwen.smartman.modules.perf.vo.SearchWorkEmployeeVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
@Api(value = "员工绩效", tags = {"员工绩效controller"})
@ApiResource({"blade-perf/employee-perf"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/perf/controller/EmployeePerfController.class */
public class EmployeePerfController extends BladeController {
    private final IEmployeePerfService perfService;
 
    public EmployeePerfController(final IEmployeePerfService perfService) {
        this.perfService = perfService;
    }
 
    @ApiOperationSupport(order = 1)
    @PostResource({"/search-perf"})
    @ApiOperation("查看员工绩效")
    @PreAuth
    public R<List<Map<String, Object>>> search(@RequestBody SearchPerfVO vo) {
        return R.data(this.perfService.search(vo));
    }
 
    @ApiOperationSupport(order = 2)
    @PostResource({"/employee-work"})
    @ApiOperation("查看员工在时间范围内的上下线的工位")
    @PreAuth
    public R<List<WorkstationBO>> employeeWork(@Valid @RequestBody SearchEmployeeWorkVO vo) {
        return R.data(this.perfService.employeeWork(vo));
    }
 
    @ApiOperationSupport(order = 3)
    @PostResource({"/work-employee"})
    @ApiOperation("查看工位在时间范围内被上下线的员工")
    @PreAuth
    public R<List<EmployeeVO>> workEmployee(@RequestBody SearchWorkEmployeeVO vo) {
        return R.data(this.perfService.workEmployee(vo));
    }
}