|
|
|
@@ -293,9 +293,9 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
long id = idWorker.nextId(); |
|
|
|
if (wxMsg.getId() == null) { |
|
|
|
wxMsg.setId(id); |
|
|
|
Date date =new Date(); |
|
|
|
wxMsg.setSendtime(DateUtils.date2String(date,"yyyy-MM-dd HH::mm:ss")); |
|
|
|
wxMsg.setCreatetime(date); |
|
|
|
String systemTime = DateUtils.getSystemTime("yyyy-MM-dd HH:mm:ss"); |
|
|
|
wxMsg.setSendtime(systemTime); |
|
|
|
wxMsg.setCreatetime(DateUtils.stringToDate(systemTime,"yyyy-MM-dd HH:mm:ss")); |
|
|
|
wxMsgMapper.insertSelective(wxMsg); |
|
|
|
} else { |
|
|
|
wxMsgMapper.updateByPrimaryKeySelective(wxMsg); |
|
|
|
|