Commit 798c5090 by zhengxj

finish 技工列表 on 20191031 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24503 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d39bdc0d
...@@ -1009,27 +1009,22 @@ ...@@ -1009,27 +1009,22 @@
ssm.service_id = #{userId} ssm.service_id = #{userId}
AND u.user_type = 3 AND u.user_type = 3
<!-- AND sm.mechanic_status = 'sys_user_status_pass_check' --> <!-- AND sm.mechanic_status = 'sys_user_status_pass_check' -->
<if test="id != null and id!=''"> <if test="id != null ">
and u.id = #{id,jdbcType=INTEGER} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="keyWord != null and keyWord!=''"> <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}"%" or u.phone_number like "%"#{phoneNumber,jdbcType=VARCHAR}"%" ) and( u.name like '%'#{keyWord}'%' or su.name like '%'#{keyWord}'%' or u.phone_number like '%'#{keyWord}'%' )
</if> </if>
<!-- <if test="mechanicId != null ">
and u.id like #{mechanicId} <if test="mechanicId != null ">
</if> --> OR u.id like #{mechanicId}
</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!=''">
and u.name like "%"#{name,jdbcType=VARCHAR}"%"
</if> -->
<!-- <if test="phoneNumber != null and phoneNumber!=''">
and u.phone_number like "%"#{phoneNumber,jdbcType=VARCHAR}"%"
</if> -->
<if test="serviceKey != null and serviceKey!=''"> <if test="serviceKey != null and serviceKey!=''">
AND sdd.data_key LIKE "%"#{serviceKey,jdbcType=VARCHAR}"%" AND sdd.data_key LIKE "%"#{serviceKey,jdbcType=VARCHAR}"%"
</if> </if>
...@@ -1049,7 +1044,7 @@ ...@@ -1049,7 +1044,7 @@
and sm.mechanic_status= #{mechanicStatus,jdbcType=VARCHAR} and sm.mechanic_status= #{mechanicStatus,jdbcType=VARCHAR}
</when> </when>
<otherwise> <otherwise>
and sm.mechanic_status IN ('sys_user_status_pass_check','sys_user_status_uncheck','sys_user_status_nopass_check') and sm.mechanic_status IN ('sys_user_status_pass_check','sys_user_status_uncheck','sys_user_status_checking')
</otherwise> </otherwise>
</choose> </choose>
GROUP BY GROUP BY
...@@ -1109,7 +1104,7 @@ ...@@ -1109,7 +1104,7 @@
</otherwise> </otherwise>
</choose> </choose>
<if test="id != null and id!=''"> <if test="id != null">
and u.id = #{id,jdbcType=INTEGER} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="keyWord != null and keyWord!=''"> <if test="keyWord != null and keyWord!=''">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!