魏超 5 年 前
コミット
de7c3ae81b
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2
    2
      src/main/resources/mapper/TaPersonVisitRecordMapper.xml

+ 2
- 2
src/main/resources/mapper/TaPersonVisitRecordMapper.xml ファイルの表示

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