Browse Source

添加节点类型、标签等

master
陈裕财 4 years ago
parent
commit
38f7a0d007
  1. 16
      xm-core/src/main/java/com/xm/core/service/XmQuestionService.java

16
xm-core/src/main/java/com/xm/core/service/XmQuestionService.java

@ -53,6 +53,22 @@ public class XmQuestionService extends BaseService {
BeanUtils.copyProperties(xmQuestionVo,xmQuestion); BeanUtils.copyProperties(xmQuestionVo,xmQuestion);
xmQuestion.setBugStatus("active"); xmQuestion.setBugStatus("active");
this.insert(xmQuestion); 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) { if(xmQuestionVo.getAttachment()!=null && xmQuestionVo.getAttachment().size()>0) {
xmAttachmentService.insertOrUpdate(xmQuestionVo.getId(),"问题",xmQuestionVo.getAttachment()); xmAttachmentService.insertOrUpdate(xmQuestionVo.getId(),"问题",xmQuestionVo.getAttachment());
} }

Loading…
Cancel
Save