张延森 5 年之前
父節點
當前提交
51da8ea245

+ 1
- 1
src/main/java/com/huiju/estateagents/service/impl/MiniAppServiceImpl.java 查看文件

@@ -159,7 +159,7 @@ public class MiniAppServiceImpl implements IMiniAppService {
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 165
     @Override

+ 2
- 2
src/main/resources/mapper/TaPersonVisitRecordMapper.xml 查看文件

@@ -281,14 +281,14 @@
281 281
     </select>
282 282
 
283 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 285
         where
286 286
         t.consultant_id = #{userId}
287 287
         and t.org_id = #{orgId}
288 288
         and t.event_type = #{eventType}
289 289
         and t.target_id = #{targetId}
290 290
         and t.person_id != t.share_person_id
291
-        group by t.event_type, person_id
291
+        group by t.event_type
292 292
     </select>
293 293
 
294 294
 </mapper>