瀏覽代碼

通过和驳回

ys321973351 1 年之前
父節點
當前提交
70431453e7

+ 4 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/flowpath/controller/ItdmRunFlowPathController.java

@@ -148,6 +148,7 @@ public class ItdmRunFlowPathController extends JeecgController<ItdmRunFlowPath,
     @DeleteMapping(value = "/delete")
     public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
         itdmRunFlowPathService.removeById(id);
+        itdmRunFlowPathStepService.remove(Wrappers.lambdaQuery(ItdmRunFlowPathStep.class).eq(ItdmRunFlowPathStep::getRunFlowPath, id));
         return Result.OK("删除成功!");
     }
 
@@ -163,6 +164,9 @@ public class ItdmRunFlowPathController extends JeecgController<ItdmRunFlowPath,
     @DeleteMapping(value = "/deleteBatch")
     public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
         this.itdmRunFlowPathService.removeByIds(Arrays.asList(ids.split(",")));
+        itdmRunFlowPathStepService.remove(Wrappers.lambdaQuery(ItdmRunFlowPathStep.class)
+                .in(ItdmRunFlowPathStep::getRunFlowPath, Arrays.asList(ids.split(","))));
+
         return Result.OK("批量删除成功!");
     }