Commit 3dcac6b7 by zhengxj

finish 技工管理列表查询条件整合 on 20191009

by zhengxj 

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24144 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 681597fd
...@@ -1094,18 +1094,23 @@ ...@@ -1094,18 +1094,23 @@
and u.id = #{id,jdbcType=INTEGER} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="keyWord != null and keyWord!=''">
and( u.id like #{keyWord} or u.name like "%"#{keyWord,jdbcType=VARCHAR}"%" or su.name like "%"#{keyWord,jdbcType=VARCHAR}"%" )
</if>
<!--
<if test="mechanicId != null "> <if test="mechanicId != null ">
and u.id like #{mechanicId} and u.id like #{mechanicId}
</if> </if> -->
<if test="serviceType != null and serviceType!=''"> <if test="serviceType != null and serviceType!=''">
and sm.service_type = #{serviceType,jdbcType=VARCHAR} and sm.service_type = #{serviceType,jdbcType=VARCHAR}
</if> </if>
<if test="name != null and name!=''"> <!-- <if test="name != null and name!=''">
and u.name like "%"#{name,jdbcType=VARCHAR}"%" and u.name like "%"#{name,jdbcType=VARCHAR}"%"
</if> </if>
-->
<if test="phoneNumber != null and phoneNumber!=''"> <if test="phoneNumber != null and phoneNumber!=''">
and u.phone_number like "%"#{phoneNumber,jdbcType=VARCHAR}"%" and u.phone_number like "%"#{phoneNumber,jdbcType=VARCHAR}"%"
</if> </if>
...@@ -1123,7 +1128,7 @@ ...@@ -1123,7 +1128,7 @@
and u.user_status IN ('sys_user_status_normal','sys_user_status_nonuse') and u.user_status IN ('sys_user_status_normal','sys_user_status_nonuse')
</otherwise> </otherwise>
</choose> </choose>
and sm.mechanic_status IN ('sys_user_status_pass_check') and sm.mechanic_status IN ('sys_user_status_pass_check','sys_user_status_uncheck','sys_user_status_nopass_check')
GROUP BY u.id GROUP BY u.id
ORDER BY u.create_time DESC ORDER BY u.create_time DESC
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!