|
@@ -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("批量删除成功!");
|
|
|
}
|
|
|
|