魏超 5 years ago
parent
commit
07529e884f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main/resources/mapper/TaPersonVisitRecordMapper.xml

+ 1
- 1
src/main/resources/mapper/TaPersonVisitRecordMapper.xml View File

@@ -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 != t.person_id
141
+            t.share_person_id != t.person_id and t.share_person_id is not null and t.share_person_id != ''
142 142
             <if test="orgId != null and orgId != ''">
143 143
                 and t.org_id = #{orgId}
144 144
             </if>