浏览代码

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

魏超 5 年前
父节点
当前提交
e53b76683e
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 6
    6
      src/main/resources/mapper/TaBuildingMapper.xml
  2. 1
    1
      src/main/resources/mapper/TaUserMapper.xml

+ 6
- 6
src/main/resources/mapper/TaBuildingMapper.xml 查看文件

@@ -271,13 +271,13 @@
271 271
                 b.*,
272 272
                 d.building_name
273 273
             FROM
274
-                ta_person b
274
+                ta_recommend_customer b
275 275
             LEFT JOIN ta_building d ON b.building_id = d.building_id
276 276
             WHERE
277 277
                 b.STATUS > 0
278 278
                 AND b.org_id = #{orgId}
279
-                AND IFNULL( b.person_type, '' ) IN ( 'estate agent', 'customer' )
280
-                AND b.person_id NOT IN ( SELECT c.person_id FROM ta_recommend_customer c WHERE c.org_id = #{orgId} AND person_id IS NOT NULL AND person_id != '' )
279
+                AND b.verify_status = 1
280
+                AND ( b.realty_consultant IS NULL OR b.realty_consultant = '' )
281 281
                 <if test="personBuildingList != null and personBuildingList.size > 0">
282 282
                     AND b.building_id in
283 283
                     <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
@@ -427,12 +427,12 @@
427 427
                 SELECT
428 428
                     b.*
429 429
                 FROM
430
-                    ta_person b
430
+                    ta_recommend_customer b
431 431
                 WHERE
432 432
                     b.STATUS > 0
433 433
                     AND b.org_id = #{orgId}
434
-                    AND IFNULL( b.person_type, '' ) IN ( 'estate agent', 'customer' )
435
-                    AND b.person_id NOT IN ( SELECT c.person_id FROM ta_recommend_customer c WHERE c.org_id = #{orgId} AND person_id IS NOT NULL AND person_id != '' )
434
+                    AND b.verify_status = 1
435
+                    AND ( b.realty_consultant IS NULL OR b.realty_consultant = '' )
436 436
                     <if test="startDate != null">
437 437
                         and  TO_DAYS(b.create_date) >= TO_DAYS(#{startDate})
438 438
                     </if>

+ 1
- 1
src/main/resources/mapper/TaUserMapper.xml 查看文件

@@ -80,7 +80,7 @@
80 80
             <if test="taUser.status != null and taUser.status != ''">
81 81
                 and t.status = #{taUser.status}
82 82
             </if>
83
-            <if test="taUser.isConsultant == 0">
83
+            <if test="taUser.isConsultant != null">
84 84
                 and t.is_consultant = #{taUser.isConsultant}
85 85
             </if>
86 86
             <if test="taUser.miniStatus == 0">