| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.dto.PerformanceShiftAddDto; |
| | | import com.yuanchu.mom.pojo.PerformanceShift; |
| | | import com.yuanchu.mom.service.PerformanceShiftService; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | |
| | | /** |
| | |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "绩效管理-班次-分页查询") |
| | | @GetMapping("page") |
| | | public Result<?> performanceShiftPage(Integer size, Integer current, LocalDateTime time, String userName, String laboratory) { |
| | | @ApiOperation(value = "绩效管理-班次-月份分页查询") |
| | | @PostMapping("page") |
| | | public Result<?> performanceShiftPage(Integer size, Integer current, String time, String userName, String laboratory) { |
| | | return Result.success(performanceShiftService.performanceShiftPage(new Page<>(current, size), time, userName, laboratory)); |
| | | } |
| | | |
| | | @ApiOperation(value = "绩效管理-班次-年份分页查询") |
| | | @PostMapping("pageYear") |
| | | public Result<?> performanceShiftPageYear(Integer size, Integer current, String time, String userName, String laboratory) { |
| | | return Result.success(performanceShiftService.performanceShiftPageYear(new Page<>(current, size), time, userName, laboratory)); |
| | | } |
| | | |
| | | @ApiOperation(value = "绩效管理-班次-班次状态修改") |
| | | @GetMapping("update/{id}") |
| | | public Result<?> performanceShiftUpdate(String shift, @PathVariable("id") Integer id) { |
| | | performanceShiftService.performanceShiftUpdate(shift, id); |
| | | @PutMapping("update") |
| | | public Result<?> performanceShiftUpdate(@RequestBody PerformanceShift performanceShift) { |
| | | performanceShiftService.performanceShiftUpdate(performanceShift); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "绩效管理-班次-导出") |
| | | @GetMapping("update") |
| | | public Result<?> exportToExcel(String time, String userName, String laboratory) { |
| | | performanceShiftService.exportToExcel(time, userName, laboratory); |
| | | return Result.success(); |
| | | } |
| | | } |