Browse Source

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents into dev

# Conflicts:
#	src/main/resources/mapper/TaHousingResourcesMapper.xml
#	src/main/resources/mapper/TaRaiseRecordMapper.xml
傅行帆 5 years ago
parent
commit
a69d90322b
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      src/main/resources/mapper/TaPersonVisitRecordMapper.xml

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

@@ -175,12 +175,9 @@
175 175
             left join ta_help_activity tha on t.target_id = tha.help_activity_id
176 176
             left join ta_share_activity tsa on t.target_id = tsa.group_activity_id
177 177
             left join ta_building_dynamic tbd on t.target_id = tbd.dynamic_id
178
-            left join ta_person c on (t.share_person = c.person_id or t.share_person = c.user_id)
179
-            where 1=1
178
+            left join ta_person c on t.org_id = c.org_id and (t.share_person = c.person_id or t.share_person = c.user_id)
179
+            where t.org_id = #{orgId}
180 180
             and t.target_type in ('h5_share','group_share','help_share','news_share','dynamic_share','building_share')
181
-            <if test="orgId != null and orgId != ''">
182
-                and c.org_id = #{orgId}
183
-            </if>
184 181
             <if test="eventType !=null and eventType != ''">
185 182
                 and t.target_type = #{eventType}
186 183
             </if>