gaodd преди 4 месеца
родител
ревизия
21be3dbd62

+ 6 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/lawEnforcementSupervision/modular/lesflow/service/impl/BizLesFlowServiceImpl.java

@@ -81,8 +81,13 @@ public class BizLesFlowServiceImpl extends ServiceImpl<BizLesFlowMapper, BizLesF
81 81
         BizLesFlow bizLesFlow = this.queryEntity(bizLesFlowEditParam.getId());
82 82
         BeanUtil.copyProperties(bizLesFlowEditParam, bizLesFlow);
83 83
         this.updateById(bizLesFlow);
84
+        //先删除 后新增
84 85
         for(BizLesFlowLink bizLesFlowLink:bizLesFlow.getFlowLinkList()){
85
-            bizLesFlowLinkServiceImpl.updateById(bizLesFlowLink);
86
+            bizLesFlowLinkServiceImpl.removeById(bizLesFlowLink.getId());
87
+        }
88
+        for(BizLesFlowLink bizLesFlowLink:bizLesFlow.getFlowLinkList()){
89
+            bizLesFlowLink.setLesFlowId(bizLesFlow.getId());
90
+            bizLesFlowLinkServiceImpl.save(bizLesFlowLink);
86 91
         }
87 92
     }
88 93
 

+ 6 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/lawEnforcementSupervision/modular/lesprocess/service/impl/BizLesProcessServiceImpl.java

@@ -82,8 +82,13 @@ public class BizLesProcessServiceImpl extends ServiceImpl<BizLesProcessMapper, B
82 82
         BizLesProcess bizLesProcess = this.queryEntity(bizLesProcessEditParam.getId());
83 83
         BeanUtil.copyProperties(bizLesProcessEditParam, bizLesProcess);
84 84
         this.updateById(bizLesProcess);
85
+        //删除 新增
85 86
         for(BizLesProcessLink bizLesProcessLink:bizLesProcess.getProcessLinkList()){
86
-            bizLesProcessLinkServiceImpl.updateById(bizLesProcessLink);
87
+            bizLesProcessLinkServiceImpl.removeById(bizLesProcessLink.getId());
88
+        }
89
+        for(BizLesProcessLink bizLesProcessLink:bizLesProcess.getProcessLinkList()){
90
+            bizLesProcessLink.setLesProcessId(bizLesProcess.getId());
91
+            bizLesProcessLinkServiceImpl.save(bizLesProcessLink);
87 92
         }
88 93
     }
89 94