Browse Source

重新生成工时表

master
陈裕财 4 years ago
parent
commit
647d76cc73
  1. 16
      xm-core/src/main/java/com/xm/core/service/XmQuestionService.java
  2. 7
      xm-core/src/main/java/com/xm/core/vo/XmQuestionVo.java

16
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;
}

7
xm-core/src/main/java/com/xm/core/vo/XmQuestionVo.java

@ -11,7 +11,6 @@ public class XmQuestionVo extends XmQuestion {
List<XmAttachment> attachment;
String receiptMessage;
String tardgetBugStatus;
public List<XmAttachment> 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;
}

Loading…
Cancel
Save