|
@@ -473,32 +473,32 @@ FROM
|
473
|
473
|
|
474
|
474
|
<select id="getPersonList" resultType="com.huiju.estateagents.entity.TaPerson">
|
475
|
475
|
SELECT
|
476
|
|
- a.*
|
477
|
|
-FROM
|
478
|
|
- ta_person a
|
479
|
|
- LEFT JOIN ta_person_building b ON a.person_id = b.person_id
|
480
|
|
- <where>
|
481
|
|
- 1=1
|
482
|
|
- <if test="personType != null and personType!= ''">
|
483
|
|
- and a.person_type = #{personType}
|
484
|
|
- </if>
|
485
|
|
- <if test="name != null and name!= ''">
|
486
|
|
- and a.name like CONCAT('%',#{name}, '%')
|
487
|
|
- </if>
|
488
|
|
- <if test="personTags != null and personTags!= ''">
|
489
|
|
- and a.person_tags like CONCAT('%',#{personTags}, '%')
|
490
|
|
- </if>
|
491
|
|
- <if test="phone != null and phone!= ''">
|
492
|
|
- and a.tel = #{phone}
|
493
|
|
- </if>
|
494
|
|
- <if test="buildingId != null and buildingId!= ''">
|
495
|
|
- and b.building_id = #{buildingId}
|
496
|
|
- </if>
|
497
|
|
- <if test="status != null">
|
498
|
|
- and a.status = #{status}
|
499
|
|
- </if>
|
500
|
|
- </where>
|
501
|
|
- GROUP BY a.person_id
|
|
476
|
+ a.*
|
|
477
|
+ FROM
|
|
478
|
+ ta_person a
|
|
479
|
+ LEFT JOIN ta_person_building b ON a.person_id = b.person_id
|
|
480
|
+ <where>
|
|
481
|
+ 1=1
|
|
482
|
+ <if test="personType != null and personType!= ''">
|
|
483
|
+ and a.person_type = #{personType}
|
|
484
|
+ </if>
|
|
485
|
+ <if test="name != null and name!= ''">
|
|
486
|
+ and a.name like CONCAT('%',#{name}, '%')
|
|
487
|
+ </if>
|
|
488
|
+ <if test="personTags != null and personTags!= ''">
|
|
489
|
+ and a.person_tags like CONCAT('%',#{personTags}, '%')
|
|
490
|
+ </if>
|
|
491
|
+ <if test="phone != null and phone!= ''">
|
|
492
|
+ and a.tel = #{phone}
|
|
493
|
+ </if>
|
|
494
|
+ <if test="buildingId != null and buildingId!= ''">
|
|
495
|
+ and b.building_id = #{buildingId}
|
|
496
|
+ </if>
|
|
497
|
+ <if test="status != null">
|
|
498
|
+ and a.status = #{status}
|
|
499
|
+ </if>
|
|
500
|
+ </where>
|
|
501
|
+ GROUP BY a.person_id
|
502
|
502
|
</select>
|
503
|
503
|
|
504
|
504
|
<select id="channelBrokerList" resultType="com.huiju.estateagents.entity.TaPerson">
|