Selaa lähdekoodia

外部报验功能

wangming 1 vuosi sitten
vanhempi
commit
39378aefc3

+ 5 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxOutsideInspectionItpServiceImpl.java

@@ -62,6 +62,8 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
             return ;
         }
 
+        String[] structureIds = itpDo.getStructureid().split(",");
+
         List<ZhcxOutsideInspectionItpDo> insertList = new ArrayList<>();
         List<ZhcxOutsideInspectionItpDo> updateList = new ArrayList<>();
         List<String> newItpIdList = new ArrayList<>();
@@ -81,6 +83,7 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
                     itpDo.setStructurename(structurName);
                     itpDo.setInspectioncontent(inspectionContent);
                     itpDo.setInspectioncode(code);
+                    itpDo.setStructureid(structureIds[count]);
                     updateList.add(itpDo);
                     continue;
                 }
@@ -91,8 +94,10 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
                 entity.setInspectioncontent(inspectionContent);
                 entity.setId(SecurityUtil.getUUID());
                 entity.setInspectioncode(code);
+                entity.setStructureid(structureIds[count]);
                 insertList.add(entity);
                 newItpIdList.add(entity.getId());
+
             }
         }