|
@@ -296,6 +296,26 @@ public class IotOpeationFillController {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/upOperationOrder")
|
|
|
|
|
+ @Operation(summary = "创建运行记录填写信息")
|
|
|
|
|
+ public CommonResult<Integer> upOperationOrder(@Valid @RequestBody IotOpeationFillRespVO respVO) {
|
|
|
|
|
+
|
|
|
|
|
+ List<IotOpeationFillRespVO> fillList1 = iotOpeationFillService.getFillList(respVO);
|
|
|
|
|
+
|
|
|
|
|
+ boolean result = fillList1.stream().allMatch(e->e.getIsFill()==1);
|
|
|
|
|
+
|
|
|
|
|
+ IotDeviceRunLogDO deviceRunLogDO = new IotDeviceRunLogDO();
|
|
|
|
|
+ deviceRunLogDO.setId(respVO.getId());
|
|
|
|
|
+
|
|
|
|
|
+ if(result){
|
|
|
|
|
+ iotOpeationFillService.updateFillOrder(deviceRunLogDO);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return success(1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@PutMapping("/update")
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "更新运行记录填报")
|
|
@Operation(summary = "更新运行记录填报")
|
|
|
@PreAuthorize("@ss.hasPermission('rq:iot-opeation-fill:update')")
|
|
@PreAuthorize("@ss.hasPermission('rq:iot-opeation-fill:update')")
|