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>> search(@RequestBody SearchPerfVO vo) { return R.data(this.perfService.search(vo)); } @ApiOperationSupport(order = 2) @PostResource({"/employee-work"}) @ApiOperation("查看员工在时间范围内的上下线的工位") @PreAuth public R> employeeWork(@Valid @RequestBody SearchEmployeeWorkVO vo) { return R.data(this.perfService.employeeWork(vo)); } @ApiOperationSupport(order = 3) @PostResource({"/work-employee"}) @ApiOperation("查看工位在时间范围内被上下线的员工") @PreAuth public R> workEmployee(@RequestBody SearchWorkEmployeeVO vo) { return R.data(this.perfService.workEmployee(vo)); } }