| | |
| | | @Resource |
| | | private MesProWorkOrderParamRecordDetailMapper paramRecordDetailMapper; |
| | | |
| | | @Resource |
| | | private cn.iocoder.yudao.module.mes.service.pro.feedback.MesProTaskExecutionService taskExecutionService; |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "创建生产报工") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:create')") |
| | |
| | | return success(new PageResult<>(buildFeedbackRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | | } |
| | | |
| | | @GetMapping("/execution") |
| | | @Operation(summary = "生产任务执行反馈分析", |
| | | description = "汇总计划、报工、设备采集、物料消耗与交期偏差;延期原因仅列可观测信号,需人工确认") |
| | | @Parameter(name = "taskId", description = "任务编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-feedback:query')") |
| | | public CommonResult<cn.iocoder.yudao.module.mes.controller.admin.pro.feedback.vo.MesProTaskExecutionRespVO> |
| | | getTaskExecution(@RequestParam("taskId") Long taskId) { |
| | | return success(taskExecutionService.getExecution(taskId)); |
| | | } |
| | | |
| | | @GetMapping("/list-by-task") |
| | | @Operation(summary = "按任务获得报工历史列表") |
| | | @Parameter(name = "taskId", description = "任务编号", required = true, example = "1024") |