|
@@ -76,7 +76,7 @@
|
|
<!-- 分页查询 -->
|
|
<!-- 分页查询 -->
|
|
<select id="queryPage" resultMap="SysUserDevice" parameterType="map">
|
|
<select id="queryPage" resultMap="SysUserDevice" parameterType="map">
|
|
SELECT ud.*,u.phone_,u.real_name_ FROM sys_user_device ud left join sys_user u on ud.user_id_ = u.id_
|
|
SELECT ud.*,u.phone_,u.real_name_ FROM sys_user_device ud left join sys_user u on ud.user_id_ = u.id_
|
|
- where del_flag_ = 0
|
|
|
|
|
|
+ where ud.del_flag_ = 0
|
|
<if test="search != null and search != ''">
|
|
<if test="search != null and search != ''">
|
|
and (u.real_name_ LIKE CONCAT('%',#{search},'%') OR u.phone_ LIKE CONCAT('%',#{search},'%') OR u.id_ like CONCAT('%',#{search},'%'))
|
|
and (u.real_name_ LIKE CONCAT('%',#{search},'%') OR u.phone_ LIKE CONCAT('%',#{search},'%') OR u.id_ like CONCAT('%',#{search},'%'))
|
|
</if>
|
|
</if>
|
|
@@ -96,7 +96,7 @@
|
|
<!-- 查询当前表的总记录数 -->
|
|
<!-- 查询当前表的总记录数 -->
|
|
<select id="queryCount" resultType="int">
|
|
<select id="queryCount" resultType="int">
|
|
SELECT COUNT(ud.user_id_) FROM sys_user_device ud left join sys_user u on ud.user_id_ = u.id_
|
|
SELECT COUNT(ud.user_id_) FROM sys_user_device ud left join sys_user u on ud.user_id_ = u.id_
|
|
- where del_flag_ = 0
|
|
|
|
|
|
+ where ud.del_flag_ = 0
|
|
<if test="search != null and search != ''">
|
|
<if test="search != null and search != ''">
|
|
and (u.real_name_ LIKE CONCAT('%',#{search},'%') OR u.phone_ LIKE CONCAT('%',#{search},'%') OR u.id_ like CONCAT('%',#{search},'%'))
|
|
and (u.real_name_ LIKE CONCAT('%',#{search},'%') OR u.phone_ LIKE CONCAT('%',#{search},'%') OR u.id_ like CONCAT('%',#{search},'%'))
|
|
</if>
|
|
</if>
|