张延森 vor 5 Jahren
Ursprung
Commit
51da8ea245

+ 1
- 1
src/main/java/com/huiju/estateagents/service/impl/MiniAppServiceImpl.java Datei anzeigen

159
         }
159
         }
160
 
160
 
161
         // 更新消息发送时间
161
         // 更新消息发送时间
162
-        iTaPersonMessageRuleService.saveOrUpdateByPersonAndMessage(toUser.getPersonId(), messageType, contentType, toUser.getOrgId());
162
+        iTaPersonMessageRuleService.shareRecords(toUser.getPersonId(), messageType, contentType, toUser.getOrgId());
163
     }
163
     }
164
     
164
     
165
     @Override
165
     @Override

+ 2
- 2
src/main/resources/mapper/TaPersonVisitRecordMapper.xml Datei anzeigen

281
     </select>
281
     </select>
282
 
282
 
283
     <select id="countShareNumByEventType" resultType="java.lang.Integer">
283
     <select id="countShareNumByEventType" resultType="java.lang.Integer">
284
-        select count(*) from ta_person_visit_record t
284
+        select count(DISTINCT t.person_id) from ta_person_visit_record t
285
         where
285
         where
286
         t.consultant_id = #{userId}
286
         t.consultant_id = #{userId}
287
         and t.org_id = #{orgId}
287
         and t.org_id = #{orgId}
288
         and t.event_type = #{eventType}
288
         and t.event_type = #{eventType}
289
         and t.target_id = #{targetId}
289
         and t.target_id = #{targetId}
290
         and t.person_id != t.share_person_id
290
         and t.person_id != t.share_person_id
291
-        group by t.event_type, person_id
291
+        group by t.event_type
292
     </select>
292
     </select>
293
 
293
 
294
 </mapper>
294
 </mapper>