| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.mes.md.entity.KBBTJPDrawingBP; |
| | | import com.mes.md.entity.PrimitiveTask; |
| | | import com.mes.md.entity.TaskingLog; |
| | | import com.mes.md.entity.*; |
| | | import com.mes.md.mapper.KBBTJPDrawingBPMapper; |
| | | import com.mes.md.mapper.TaskingLogMapper; |
| | | import com.mes.md.service.KBBTJPDrawingBPService; |
| | | import com.mes.md.service.LineConfigurationService; |
| | | import com.mes.md.service.PrimitiveTaskService; |
| | | import com.mes.md.service.TaskingLogService; |
| | | import com.mes.utils.Result; |
| | |
| | | TaskingLogService taskingLogService; |
| | | @Autowired |
| | | TaskingLogMapper taskingLogMapper; |
| | | @Autowired |
| | | LineConfigurationService lineConfigurationService; |
| | | |
| | | @ApiOperation("查询当前设备,未完工状态的线上任务") |
| | | @PostMapping("/selectPrimitiveTask") |
| | | @PostMapping("/findMachineTask") |
| | | @ResponseBody |
| | | public Result findMachineTask(@RequestBody PrimitiveTask primitiveTask) { |
| | | List<PrimitiveTask> list =primitiveTaskService.selectPrimitiveTask(primitiveTask); |
| | | public Result findMachineTask(@RequestBody Machine machine) { |
| | | LineConfiguration lineConfiguration = lineConfigurationService.machineLineConfiguration(machine); |
| | | List<PrimitiveTask> list =primitiveTaskService.findPrimitiveTasking(machine,lineConfiguration.getLineId()); |
| | | return Result.build(200,"成功",list); |
| | | } |
| | | |