Procházet zdrojové kódy

[标签短信][修改][立即发送时间=创建时间]

release_toaliyun_real
gongbiao před 7 roky
rodič
revize
a91a8eddea
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java

+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxMsgServiceImpl.java Zobrazit soubor

@@ -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);


Načítá se…
Zrušit
Uložit