|
@@ -152,7 +152,10 @@ public class ConversationContentServiceImpl extends BaseMybatisDao<ChatMsgUserMa
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(str);
|
|
com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(str);
|
|
|
String msgtype = jsonObject.getString("msgtype");
|
|
String msgtype = jsonObject.getString("msgtype");
|
|
|
InputChatMsg chatMsg = new InputChatMsg(jsonObject);
|
|
InputChatMsg chatMsg = new InputChatMsg(jsonObject);
|
|
|
- ChatMsg chatMsg1 = chatMsgMapper.selectByMsgId(chatMsg.getMsgid());
|
|
|
|
|
|
|
+ //获取五天前的时间
|
|
|
|
|
+ Date date = DateUtils.getDateBefore(new Date(), 5);
|
|
|
|
|
+ System.out.println(DateUtils.formatDate(date, "yyyy-MM-dd HH:mm:ss"));
|
|
|
|
|
+ ChatMsg chatMsg1 = chatMsgMapper.selectByMsgId(chatMsg.getMsgid(),date);
|
|
|
if (chatMsg1 == null){
|
|
if (chatMsg1 == null){
|
|
|
//处理数据
|
|
//处理数据
|
|
|
pushSmgType(msgtype, jsonObject, sdk, chatMsg);
|
|
pushSmgType(msgtype, jsonObject, sdk, chatMsg);
|