| @@ -132,7 +132,6 @@ public class WxMsgServiceImpl implements WxMsgService { | |||||
| //是否立即发送 | //是否立即发送 | ||||
| if (wxMsg.getIsright().equals(EnumMsgSend.MSG_SEND_IMMEDIATELY.getCode())) { | if (wxMsg.getIsright().equals(EnumMsgSend.MSG_SEND_IMMEDIATELY.getCode())) { | ||||
| wxMsg.setStatus(EnumMsgStatus.MSG_STATUS_SENDED.getCode()); | wxMsg.setStatus(EnumMsgStatus.MSG_STATUS_SENDED.getCode()); | ||||
| wxMsg.setSendtime(DateUtils.getSystemTime("yyyy-MM-dd HH:mm:ss")); | |||||
| return sendmsg(wxMsg); | return sendmsg(wxMsg); | ||||
| } else { | } else { | ||||
| wxMsg.setStatus(EnumMsgStatus.MSG_STATUS_NOT_SEND.getCode()); | wxMsg.setStatus(EnumMsgStatus.MSG_STATUS_NOT_SEND.getCode()); | ||||
| @@ -294,7 +293,9 @@ public class WxMsgServiceImpl implements WxMsgService { | |||||
| long id = idWorker.nextId(); | long id = idWorker.nextId(); | ||||
| if (wxMsg.getId() == null) { | if (wxMsg.getId() == null) { | ||||
| wxMsg.setId(id); | wxMsg.setId(id); | ||||
| wxMsg.setCreatetime(new Date()); | |||||
| Date date =new Date(); | |||||
| wxMsg.setSendtime(DateUtils.date2String(date,"yyyy-MM-dd HH::mm:ss")); | |||||
| wxMsg.setCreatetime(date); | |||||
| wxMsgMapper.insertSelective(wxMsg); | wxMsgMapper.insertSelective(wxMsg); | ||||
| } else { | } else { | ||||
| wxMsgMapper.updateByPrimaryKeySelective(wxMsg); | wxMsgMapper.updateByPrimaryKeySelective(wxMsg); | ||||