车车 11 ماه پیش
والد
کامیت
5674b953f3

+ 1 - 1
ktg-iscs/src/main/java/com/ktg/iscs/controller/HardwareApiController.java

@@ -81,7 +81,7 @@ public class HardwareApiController extends BaseController
     @ApiOperation("批量更新作业票下隔离点的上锁状况")
     @Log(title = "批量更新作业票下隔离点的上锁状况", businessType = BusinessType.UPDATE)
     @PostMapping("/updateLockPointBatch")
-    public CommonResult<Boolean> updateLockPointBatch(@RequestBody @Parameter(name = "dtos", description = "修改数据类,放到body") LPBParamDTO dto)
+    public CommonResult<Boolean> updateLockPointBatch(@RequestBody @Parameter(name = "list", description = "修改数据类,放到body") LPBParamDTO dto)
     {
         return CommonResult.success(hardwareApiService.updateLockPointBatch(dto.getList()));
     }

+ 3 - 0
ktg-iscs/src/main/java/com/ktg/iscs/service/impl/IsJobTicketServiceImpl.java

@@ -350,6 +350,9 @@ public class IsJobTicketServiceImpl extends ServiceImpl<IsJobTicketMapper, IsJob
     @Override
     @Transactional
     public Boolean updateTicketProgress(JobTicketUpdateProgressReqVO reqVO) {
+        if(reqVO.equipStatus == null) {
+            reqVO.equipStatus = 3;
+        }
         IsJobTicket isJobTicket = isJobTicketMapper.selectIsJobTicketByTicketId(reqVO.ticketId);
         if (isJobTicket == null) {
             log.error("Job ticket not exists, ticketId: {}, userId : {}", reqVO.ticketId, reqVO.userId);