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