diff --git a/xm-core/src/main/java/com/xm/core/ctrl/XmQuestionController.java b/xm-core/src/main/java/com/xm/core/ctrl/XmQuestionController.java index 5d35aeb2..11787498 100644 --- a/xm-core/src/main/java/com/xm/core/ctrl/XmQuestionController.java +++ b/xm-core/src/main/java/com/xm/core/ctrl/XmQuestionController.java @@ -124,7 +124,7 @@ public class XmQuestionController { Map m = new HashMap<>(); Tips tips=new Tips("成功新增一条数据"); try{ - if(StringUtils.hasText(xmQuestionVo.getProjectId())){ + if(!StringUtils.hasText(xmQuestionVo.getProjectId())){ tips.setFailureMsg("项目编号projectId必传"); m.put("tips", tips); return m; diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml index 4ef0a5bc..b99503c5 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml @@ -78,9 +78,16 @@ + + + and not + exists ( select 1 from XM.xm_iteration_menu im where im.iteration_id=#{excludeIterationId} and im.menu_id=res.menu_id) + + + and not + exists ( select 1 from XM.xm_task t where t.menu_id=res.menu_id) + and res.menu_name like #{key} - and not exists ( select 1 from XM.xm_iteration_menu im where im.iteration_id=#{excludeIterationId} and im.menu_id=res.menu_id) - and not exists ( select 1 from XM.xm_iteration_menu im where im.menu_id=res.menu_id) order by res.seq_no asc