3254194295 vor 3 Monaten
Ursprung
Commit
101e84c121

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

@@ -370,6 +370,10 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
         this.saveFile(model);
 
         RepairApplicationForm form = BeanConverterUtil.copyObjectProperties(model, RepairApplicationForm.class);
+        if (form.getCategory()==null){
+            form.setCategory(2);//默认为非计划性维修
+        }
+
         int result = mapper.insert(form);
 
         String domain = ConfigCache.getLabelByValueAllowNull(SysConfigEnum.SYSTEM_DOMAIN.name());