From 647d76cc73999d2599131b6b5ff42894671c227c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Tue, 3 May 2022 17:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90=E5=B7=A5?= =?UTF-8?q?=E6=97=B6=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xm/core/service/XmQuestionService.java | 16 +++++----------- .../main/java/com/xm/core/vo/XmQuestionVo.java | 7 ------- 2 files changed, 5 insertions(+), 18 deletions(-) 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 3566bc38..4fdbccaf 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 @@ -57,7 +57,7 @@ public class XmQuestionService extends BaseService { XmQuestionHandle handle=new XmQuestionHandle(); handle.setReceiptMessage(xmQuestionVo.getReceiptMessage()); - handle.setHandleStatus(xmQuestionVo.getTardgetBugStatus()); + handle.setHandleStatus(xmQuestionVo.getBugStatus()); handle.setCreateTime(new Date()); handle.setReceiptTime(new Date()); handle.setHandlerUserid(xmQuestion.getCreateUserid()); @@ -82,20 +82,15 @@ public class XmQuestionService extends BaseService { */ public XmQuestionVo updateQuestion(XmQuestionVo xmQuestionVo) { User currentUser=LoginUtils.getCurrentUserInfo(); - XmQuestion xmQuestion = new XmQuestion(); - xmQuestion.setId(xmQuestionVo.getId()); - xmQuestion.setHandlerUserid(xmQuestionVo.getHandlerUserid()); - xmQuestion.setHandlerUsername(xmQuestionVo.getHandlerUsername()); - xmQuestion.setBugStatus(xmQuestionVo.getTardgetBugStatus()); - xmQuestion.setLtime(new Date()); + xmQuestionVo.setLtime(new Date()); - xmQuestion.setRemarks(xmQuestionVo.getReceiptMessage()); + xmQuestionVo.setRemarks(xmQuestionVo.getReceiptMessage()); - this.updateSomeFieldByPk(xmQuestion); + this.updateSomeFieldByPk(xmQuestionVo); XmQuestionHandle handle=new XmQuestionHandle(); handle.setReceiptMessage(xmQuestionVo.getReceiptMessage()); - handle.setHandleStatus(xmQuestionVo.getTardgetBugStatus()); + handle.setHandleStatus(xmQuestionVo.getBugStatus()); handle.setCreateTime(new Date()); handle.setReceiptTime(new Date()); handle.setHandlerUserid(currentUser.getUserid()); @@ -107,7 +102,6 @@ public class XmQuestionService extends BaseService { handle.setTargetUsername(xmQuestionVo.getHandlerUsername()); handle.setId(this.xmQuestionHandleService.createKey("id")); xmQuestionHandleService.insert(handle); - xmQuestionVo.setBugStatus(xmQuestionVo.getTardgetBugStatus()); //xmAttachmentService.insertOrUpdate(xmQuestionVo.getId(),"问题",xmQuestionVo.getAttachment()); return xmQuestionVo; } diff --git a/xm-core/src/main/java/com/xm/core/vo/XmQuestionVo.java b/xm-core/src/main/java/com/xm/core/vo/XmQuestionVo.java index d7a8cff4..31cb5e7c 100644 --- a/xm-core/src/main/java/com/xm/core/vo/XmQuestionVo.java +++ b/xm-core/src/main/java/com/xm/core/vo/XmQuestionVo.java @@ -11,7 +11,6 @@ public class XmQuestionVo extends XmQuestion { List attachment; String receiptMessage; - String tardgetBugStatus; public List getAttachment() { return attachment; @@ -29,13 +28,7 @@ public class XmQuestionVo extends XmQuestion { this.receiptMessage = receiptMessage; } - public String getTardgetBugStatus() { - return tardgetBugStatus; - } - public void setTardgetBugStatus(String tardgetBugStatus) { - this.tardgetBugStatus = tardgetBugStatus; - }