Преглед на файлове

项目报验状态报表

wangming преди 1 година
родител
ревизия
e5352d93af
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpProjectNodeStateServiceImpl.java

+ 3 - 3
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxItpProjectNodeStateServiceImpl.java

@@ -63,14 +63,14 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
             ZhcxItpProjectNodeStateDo entity = new ZhcxItpProjectNodeStateDo();
             if(ObjectUtil.isNull(stateDo)) {
                 entity.setId(SecurityUtil.getUUID());
-                dto.setSaveType("update");
-            } else {
-                entity.setId(stateDo.getId());
                 entity.setMathinecode(mn);
                 entity.setPrjid(itpDo.getProjectid());
                 entity.setNodeid(itpDo.getInspectioncontentid());
                 entity.setDeleted("0");
                 dto.setSaveType("insert");
+            } else {
+                entity.setId(stateDo.getId());
+                dto.setSaveType("update");
             }
 
             entity.setOuttimes(itpDo.getInspectioncount());