|
@@ -68,17 +68,14 @@
|
68
|
68
|
u.room_no_name,
|
69
|
69
|
u.id AS userVerifyId,
|
70
|
70
|
u.org_id AS orgId,
|
71
|
|
- t.login_name AS ownerTel,
|
72
|
|
- t.user_name AS ownerName,
|
73
|
|
- t.id_card AS idCard,
|
74
|
|
- r.description AS roleName,
|
|
71
|
+ u.phone AS ownerTel,
|
|
72
|
+ u.owner_name AS ownerName,
|
|
73
|
+ u.id_card AS idCard,
|
75
|
74
|
u.verify_status AS verifyStatus,
|
76
|
75
|
u.verify_name AS updateName,
|
77
|
76
|
u.create_date AS createDate
|
78
|
77
|
FROM
|
79
|
78
|
ta_user_verify u
|
80
|
|
- LEFT JOIN ta_user t ON t.id = u.user_id
|
81
|
|
- LEFT JOIN ta_sys_role r ON u.role_id = r.id
|
82
|
79
|
WHERE
|
83
|
80
|
|
84
|
81
|
u.org_id=#{tpBuildingOwnerInfo.orgId,jdbcType=INTEGER}
|
|
@@ -98,13 +95,13 @@
|
98
|
95
|
and u.room_no_id = #{tpBuildingOwnerInfo.roomNoId,jdbcType=INTEGER}
|
99
|
96
|
</if>
|
100
|
97
|
<if test="tpBuildingOwnerInfo.ownerName != null and tpBuildingOwnerInfo.ownerName != ''">
|
101
|
|
- and t.user_name like concat('%',#{tpBuildingOwnerInfo.ownerName,jdbcType=VARCHAR},'%')
|
|
98
|
+ and u.owner_name like concat('%',#{tpBuildingOwnerInfo.ownerName,jdbcType=VARCHAR},'%')
|
102
|
99
|
</if>
|
103
|
100
|
<if test="tpBuildingOwnerInfo.ownerTel != null and tpBuildingOwnerInfo.ownerTel != ''">
|
104
|
|
- and t.login_name like concat('%',#{tpBuildingOwnerInfo.ownerTel,jdbcType=VARCHAR},'%')
|
|
101
|
+ and u.phone like concat('%',#{tpBuildingOwnerInfo.ownerTel,jdbcType=VARCHAR},'%')
|
105
|
102
|
</if>
|
106
|
103
|
<if test="tpBuildingOwnerInfo.idCard != null and tpBuildingOwnerInfo.idCard != ''">
|
107
|
|
- and t.id_card like concat('%',#{tpBuildingOwnerInfo.idCard,jdbcType=VARCHAR},'%')
|
|
104
|
+ and u.id_card like concat('%',#{tpBuildingOwnerInfo.idCard,jdbcType=VARCHAR},'%')
|
108
|
105
|
</if>
|
109
|
106
|
order by u.create_date desc
|
110
|
107
|
</select>
|