소스 검색

维修优化

guarantee-lsq 2 년 전
부모
커밋
59759d8761
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      platform-service/src/main/java/com/platform/service/repair/strategy/AbstractRepairBaseStrategy.java

+ 3 - 0
platform-service/src/main/java/com/platform/service/repair/strategy/AbstractRepairBaseStrategy.java

@@ -156,6 +156,9 @@ public abstract class AbstractRepairBaseStrategy implements RepairBaseStrategy{
         applicationForm.setNeedStop(dto.getNeedStop());
         applicationForm.setUpdateTime(LocalDateTime.now());
         applicationForm.setOutType(dto.getOutType());
+        if(StringUtils.isBlank(applicationForm.getDispatchUserId())){
+            applicationForm.setDispatchUserId(dto.getDispatchUserId());
+        }
         // 保存维修图片
         repairApplicationFormMapper.updateByPrimaryKeySelective(applicationForm);
         // 更新设备状态为使用中