From 2cb45d675708eafea9e095b93fa4259e8547f18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 20 Jan 2023 19:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E9=98=9F=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xm/core/ctrl/XmQuestionController.java | 12 ++++++++++++ .../java/com/xm/core/service/XmGroupService.java | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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 35e1b71c..b6377ed6 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 @@ -173,6 +173,18 @@ public class XmQuestionController { if(words!=null && words.size()>0){ return failed("remark-sensitive-word","备注中有敏感词"+words+",请修改后再提交"); } + XmProject xmProject=projectService.getProjectFromCache(xmQuestionVo.getProjectId()); + Tips tips1 = this.groupService.checkProjectQx(xmProject,user); + if(!tips1.isOk()){ + if(StringUtils.hasText(xmQuestionVo.getProductId())){ + XmProduct xmProduct=productService.getProductFromCache(xmQuestionVo.getProductId()); + tips1=this.groupService.checkProductQx(xmProduct,1,user); + } + } + if(!tips1.isOk()){ + return failed(tips1); + } + xmQuestionService.addQuestion(xmQuestionVo); if(!StringUtils.isEmpty(xmQuestionVo.getHandlerUserid())) { notifyMsgService.pushMsg(user,xmQuestionVo.getHandlerUserid(),xmQuestionVo.getHandlerUsername(),"5",xmQuestionVo.getProductId(),xmQuestionVo.getId(),"您有新的bug【"+xmQuestionVo.getName()+"】需要处理,请尽快修复!"); diff --git a/xm-core/src/main/java/com/xm/core/service/XmGroupService.java b/xm-core/src/main/java/com/xm/core/service/XmGroupService.java index 7340b4bc..48196a05 100644 --- a/xm-core/src/main/java/com/xm/core/service/XmGroupService.java +++ b/xm-core/src/main/java/com/xm/core/service/XmGroupService.java @@ -155,7 +155,7 @@ public class XmGroupService extends BaseService { /** * * @param xmProduct - * @param teamType 1-需求人员 2-测试人员,3-迭代人员 + * @param teamType 0-需求人员 1-测试人员,2-迭代人员 * @param head * @return */