Explorar el Código

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

魏超 hace 5 años
padre
commit
e53b76683e

+ 6
- 6
src/main/resources/mapper/TaBuildingMapper.xml Ver fichero

271
                 b.*,
271
                 b.*,
272
                 d.building_name
272
                 d.building_name
273
             FROM
273
             FROM
274
-                ta_person b
274
+                ta_recommend_customer b
275
             LEFT JOIN ta_building d ON b.building_id = d.building_id
275
             LEFT JOIN ta_building d ON b.building_id = d.building_id
276
             WHERE
276
             WHERE
277
                 b.STATUS > 0
277
                 b.STATUS > 0
278
                 AND b.org_id = #{orgId}
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
                 <if test="personBuildingList != null and personBuildingList.size > 0">
281
                 <if test="personBuildingList != null and personBuildingList.size > 0">
282
                     AND b.building_id in
282
                     AND b.building_id in
283
                     <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
283
                     <foreach collection="personBuildingList" item="personBuilding" open="(" close=")" separator=",">
427
                 SELECT
427
                 SELECT
428
                     b.*
428
                     b.*
429
                 FROM
429
                 FROM
430
-                    ta_person b
430
+                    ta_recommend_customer b
431
                 WHERE
431
                 WHERE
432
                     b.STATUS > 0
432
                     b.STATUS > 0
433
                     AND b.org_id = #{orgId}
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
                     <if test="startDate != null">
436
                     <if test="startDate != null">
437
                         and  TO_DAYS(b.create_date) >= TO_DAYS(#{startDate})
437
                         and  TO_DAYS(b.create_date) >= TO_DAYS(#{startDate})
438
                     </if>
438
                     </if>

+ 1
- 1
src/main/resources/mapper/TaUserMapper.xml Ver fichero

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