ソースを参照

微信会话内容存储企业名称BUG修复

anderx 5 ヶ月 前
コミット
266a62720a

+ 4 - 2
src/main/java/com/kede/common/task/ConversationContentTask.java

@@ -70,14 +70,16 @@ public class ConversationContentTask {
     }
 
 
-
+    /**
+     * 将数据处理封装插入数据库
+     * @param list
+     */
     private void pushChatMsg(List<InputChatMsg> list) {
         int index=0;
         //遍历数据 迭代获取数据写入数据库
         for (InputChatMsg chatMsg : list) {
             index++;
             System.out.println("===================第"+index+"条数据\n");
-            System.out.println(chatMsg);
             String from = chatMsg.getFrom();
             //获取发送这名称
 //            System.out.println("====>"+chatMsg);

+ 11 - 0
src/main/java/com/kede/wechat/service/impl/ConversationContentServiceImpl.java

@@ -102,6 +102,12 @@ public class ConversationContentServiceImpl extends BaseMybatisDao<ChatMsgUserMa
     private ChatMsgOptimizeMapper chatMsgOptimizeMapper;
 
 
+    /**
+     * 获取会话内容
+     * @param pageSeq
+     * @param pageLimit
+     * @return
+     */
     @Override
     public Map<String,Object>  pushChatData(Integer pageSeq, Integer pageLimit) {
         String message = null;
@@ -431,6 +437,11 @@ public class ConversationContentServiceImpl extends BaseMybatisDao<ChatMsgUserMa
         return null;
     }
 
+    /**
+     * 通过id获取名字,先查数据库,没有再按类型去调API查询
+     * @param userId
+     * @return
+     */
     @Override
     public Map<String,Object> pushGetChatName(String userId) {
         Map<String,Object> map = new HashMap<>();