| | |
| | | |
| | | @GetMapping("/log/page") |
| | | @Operation(summary = "获得工作记录流水分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-workrecord:query')") |
| | | public CommonResult<PageResult<MesProWorkRecordLogRespVO>> getWorkRecordLogPage( |
| | | @Valid MesProWorkRecordLogPageReqVO pageReqVO) { |
| | | PageResult<MesProWorkRecordLogDO> pageResult = workRecordService.getWorkRecordLogPage(pageReqVO); |
| | |
| | | @GetMapping("/log/get") |
| | | @Operation(summary = "获得工作记录流水") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-workrecord:query')") |
| | | public CommonResult<MesProWorkRecordLogRespVO> getWorkRecordLog(@RequestParam("id") Long id) { |
| | | MesProWorkRecordLogDO log = workRecordService.getWorkRecordLog(id); |
| | | return success(buildWorkRecordLogRespVO(log)); |
| | |
| | | |
| | | @GetMapping("/get-my") |
| | | @Operation(summary = "获取当前用户绑定的工作站状态") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-workrecord:query')") |
| | | public CommonResult<MesProWorkRecordRespVO> getMyWorkRecord() { |
| | | MesProWorkRecordDO record = workRecordService.getWorkRecord(getLoginUserId()); |
| | | return success(buildWorkRecordRespVO(record)); |