From 38f7a0d0077da3e32a5fd7dadddde2317c1fb3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 17 Feb 2022 00:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8A=82=E7=82=B9=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E3=80=81=E6=A0=87=E7=AD=BE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xm/core/service/XmQuestionService.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/xm-core/src/main/java/com/xm/core/service/XmQuestionService.java b/xm-core/src/main/java/com/xm/core/service/XmQuestionService.java index 14641dfd..69c72c31 100644 --- a/xm-core/src/main/java/com/xm/core/service/XmQuestionService.java +++ b/xm-core/src/main/java/com/xm/core/service/XmQuestionService.java @@ -53,6 +53,22 @@ public class XmQuestionService extends BaseService { BeanUtils.copyProperties(xmQuestionVo,xmQuestion); xmQuestion.setBugStatus("active"); this.insert(xmQuestion); + + XmQuestionHandle handle=new XmQuestionHandle(); + handle.setReceiptMessage(xmQuestionVo.getReceiptMessage()); + handle.setHandleStatus(xmQuestionVo.getTardgetBugStatus()); + handle.setCreateTime(new Date()); + handle.setReceiptTime(new Date()); + handle.setHandlerUserid(xmQuestion.getCreateUserid()); + handle.setHandlerUsername(xmQuestion.getCreateUsername()); + handle.setLastUpdateTime(new Date()); + handle.setHandleSolution(xmQuestionVo.getSolution()); + handle.setQuestionId(xmQuestionVo.getId()); + handle.setTargetUserid(xmQuestionVo.getHandlerUserid()); + handle.setTargetUsername(xmQuestionVo.getHandlerUsername()); + handle.setId(this.xmQuestionHandleService.createKey("id")); + xmQuestionHandleService.insert(handle); + if(xmQuestionVo.getAttachment()!=null && xmQuestionVo.getAttachment().size()>0) { xmAttachmentService.insertOrUpdate(xmQuestionVo.getId(),"问题",xmQuestionVo.getAttachment()); }