|
@@ -480,6 +480,12 @@
|
|
fs_user
|
|
fs_user
|
|
<where>
|
|
<where>
|
|
fs_user.is_del = 0
|
|
fs_user.is_del = 0
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
+ AND fs_user.company_id = #{companyId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="companyUserId != null and companyUserId != '' ">
|
|
|
|
+ AND fs_user.company_user_id = #{companyUserId}
|
|
|
|
+ </if>
|
|
<if test="registerStartTime != null and registerStartTime !='' ">
|
|
<if test="registerStartTime != null and registerStartTime !='' ">
|
|
AND fs_user.create_time >= #{registerStartTime}
|
|
AND fs_user.create_time >= #{registerStartTime}
|
|
</if>
|
|
</if>
|
|
@@ -493,10 +499,10 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
<if test="nickname != null and nickname != ''">
|
|
<if test="nickname != null and nickname != ''">
|
|
- AND fs_user.nickname like concat(#{nickname},'%')
|
|
|
|
|
|
+ AND fs_user.nickname like concat('%', #{nickname},'%')
|
|
</if>
|
|
</if>
|
|
<if test="phone != null and phone != ''">
|
|
<if test="phone != null and phone != ''">
|
|
- AND fs_user.phone = #{phone}
|
|
|
|
|
|
+ AND fs_user.phone like concat('%', #{phone},'%')
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
limit ${(pageNum-1)*pageSize},${pageSize}
|
|
limit ${(pageNum-1)*pageSize},${pageSize}
|
|
@@ -1491,6 +1497,12 @@
|
|
fs_user
|
|
fs_user
|
|
<where>
|
|
<where>
|
|
fs_user.is_del = 0
|
|
fs_user.is_del = 0
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
+ AND fs_user.company_id = #{companyId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="companyUserId != null and companyUserId != '' ">
|
|
|
|
+ AND fs_user.company_user_id = #{companyUserId}
|
|
|
|
+ </if>
|
|
<if test="registerStartTime != null and registerStartTime !='' ">
|
|
<if test="registerStartTime != null and registerStartTime !='' ">
|
|
AND fs_user.create_time >= #{registerStartTime}
|
|
AND fs_user.create_time >= #{registerStartTime}
|
|
</if>
|
|
</if>
|
|
@@ -1507,7 +1519,7 @@
|
|
AND fs_user.nickname like concat(#{nickname},'%')
|
|
AND fs_user.nickname like concat(#{nickname},'%')
|
|
</if>
|
|
</if>
|
|
<if test="phone != null and phone!=''">
|
|
<if test="phone != null and phone!=''">
|
|
- AND fs_user.phone = #{phone}
|
|
|
|
|
|
+ AND fs_user.phone like concat('%', #{phone},'%')
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|