|
@ -345,6 +345,7 @@ public class FlowManager implements IFlowManage {
|
|
|
@Transactional
|
|
|
public Result deleteFlow(Integer id) throws Exception {
|
|
|
SystemServiceFlow flow = flowDao.getEntity(SystemServiceFlow.class, id);
|
|
|
if (flow == null){ return Result.error("删除流程失败");}
|
|
|
List<SystemServiceFlowClass> flowClassList = flowClassDao.getFlowClassByFlowId(id);
|
|
|
if (ServiceFlowConstant.JAVA.equals(flow.getFileType())) {
|
|
|
flowTempDao.deleteFlowTempByFlowId(id);
|
|
@ -360,7 +361,7 @@ public class FlowManager implements IFlowManage {
|
|
|
}
|
|
|
|
|
|
flowDao.deleteEntity(flow);
|
|
|
return Result.success("删除成功");
|
|
|
return Result.success("删除流程成功");
|
|
|
|
|
|
}
|
|
|
|