|
@@ -138,7 +138,7 @@
|
138
|
138
|
left join ta_building_dynamic tbd on t.target_id = tbd.dynamic_id
|
139
|
139
|
left join ta_person c on t.share_person_id = c.person_id
|
140
|
140
|
where
|
141
|
|
- t.share_person_id is not null and t.share_person_id != ''
|
|
141
|
+ t.share_person_id != t.person_id
|
142
|
142
|
<if test="orgId != null and orgId != ''">
|
143
|
143
|
and t.org_id = #{orgId}
|
144
|
144
|
</if>
|
|
@@ -174,7 +174,7 @@
|
174
|
174
|
</if>
|
175
|
175
|
order by t.visit_time desc
|
176
|
176
|
) t
|
177
|
|
- group by t.person_id, t.share_person_id
|
|
177
|
+ group by t.person_id, t.share_person_id,t.target_id,t.event_type
|
178
|
178
|
order by t.visit_time desc
|
179
|
179
|
</select>
|
180
|
180
|
|