3254194295 преди 7 месеца
родител
ревизия
101e84c121
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      platform-service/src/main/java/com/platform/service/repair/impl/RepairApplicationFormServiceImpl.java

+ 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());