guarantee-lsq пре 2 недеља
родитељ
комит
a04febc42d

+ 1 - 0
platform-dao/src/main/java/com/platform/dao/entity/repair/RepairApplicationForm.java

@@ -303,4 +303,5 @@ public class RepairApplicationForm implements Serializable {
      */
     private String repairTransferList;
 
+
 }

+ 4 - 1
platform-service/src/main/java/com/platform/service/repair/impl/RepairApplicationFormServiceImpl.java

@@ -1067,7 +1067,7 @@ public class RepairApplicationFormServiceImpl
         // applicationForm.setContent(dto.getContent());
         applicationForm.setOutType(dto.getOutType());
         applicationForm.setCategory(dto.getCategory());
-
+        applicationForm.setAssistantStatus(RepairAssistantStatusEnum.end.getValue());
         this.saveRepairFile(dto);
         super.modModelByPrimaryKey(applicationForm);
 
@@ -2001,6 +2001,9 @@ public class RepairApplicationFormServiceImpl
         if (form == null) {
             throw new DeniedException("维修单ID值有误!");
         }
+        if(StringUtils.isBlank(form.getRepairUserId())){
+            throw new DeniedException("该维修单尚未指派维修人");
+        }
         if (!form.getRepairUserId().equals(SecurityUtils.getUserInfo().getUserId())){
             throw new DeniedException("非该维修单的维修人不可操作");
         }