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