Explorar el Código

项目报验状态报表

wangming hace 1 año
padre
commit
e5352d93af

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