Ver código fonte

非空判断

demon 8 anos atrás
pai
commit
a1d6c1dd60

+ 2 - 1
src/main/java/com/yihu/hos/system/service/FlowManager.java

@ -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("删除流程成功");
    }