Commit 096301c3 by duanhq

技工,商户列表,bug修改 by duanht 2019/3/6

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18168 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d7eafaf6
...@@ -667,7 +667,7 @@ ...@@ -667,7 +667,7 @@
</if> </if>
<if test="id != null and id!=''"> <if test="id != null and id!=''">
and u.id = #{id,jdbcType=TINYINT} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="username != null and username!=''"> <if test="username != null and username!=''">
and u.username like "%"#{username,jdbcType=VARCHAR}"%" and u.username like "%"#{username,jdbcType=VARCHAR}"%"
...@@ -698,7 +698,7 @@ ...@@ -698,7 +698,7 @@
sm.address address, sm.address address,
sdd.data_key serviceKey, sdd.data_key serviceKey,
sdd.data_value serviceItems, sdd.data_value serviceItems,
sm.merchant_status, sm.merchant_status merchantStatus,
u.org_id groupId u.org_id groupId
<choose> <choose>
<when test="userId != 0 and userId!=''"> <when test="userId != 0 and userId!=''">
...@@ -719,7 +719,7 @@ ...@@ -719,7 +719,7 @@
LEFT JOIN sys_dict_data sdd ON sms.service_key = sdd.data_key LEFT JOIN sys_dict_data sdd ON sms.service_key = sdd.data_key
WHERE u.user_type = 2 WHERE u.user_type = 2
<if test="id != null and id!=''"> <if test="id != null and id!=''">
and u.id = #{id,jdbcType=TINYINT} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="serviceKey != null and serviceKey!=''"> <if test="serviceKey != null and serviceKey!=''">
...@@ -830,7 +830,7 @@ ...@@ -830,7 +830,7 @@
WHERE u.user_type = 3 WHERE u.user_type = 3
<if test="id != null and id!=''"> <if test="id != null and id!=''">
and u.id = #{id,jdbcType=TINYINT} and u.id = #{id,jdbcType=INTEGER}
</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}
...@@ -879,7 +879,7 @@ ...@@ -879,7 +879,7 @@
sm.mechanic_status mechanicStatus, sm.mechanic_status mechanicStatus,
sm.work_time_start workTimeStart, sm.work_time_start workTimeStart,
sm.work_time_end workTimeEnd, sm.work_time_end workTimeEnd,
sm.dispatch_type dispatchType sm.dispatch_type dispatchType,
FROM FROM
sys_user u sys_user u
LEFT JOIN sys_mechanic sm ON sm.user_id = u.id LEFT JOIN sys_mechanic sm ON sm.user_id = u.id
...@@ -888,7 +888,11 @@ ...@@ -888,7 +888,11 @@
LEFT JOIN sys_dict_data sdd ON sus.service_key = sdd.data_key LEFT JOIN sys_dict_data sdd ON sus.service_key = sdd.data_key
WHERE u.user_type = 3 WHERE u.user_type = 3
and u.user_status IN ('sys_user_status_normal') and u.user_status IN ('sys_user_status_normal')
and ssm.service_id = #{userId,jdbcType=TINYINT} and ssm.service_id = #{userId,jdbcType=INTEGER}
<if test="id != null and id!=''">
and u.id = #{id,jdbcType=INTEGER}
</if>
<if test="serviceType != null and serviceType!=''"> <if test="serviceType != null and serviceType!=''">
and sm.service_type like "%"#{serviceType,jdbcType=VARCHAR}"%" and sm.service_type like "%"#{serviceType,jdbcType=VARCHAR}"%"
</if> </if>
...@@ -928,7 +932,7 @@ ...@@ -928,7 +932,7 @@
where id in where id in
<foreach collection="ids" index="index" item="id" <foreach collection="ids" index="index" item="id"
separator="," open="(" close=")"> separator="," open="(" close=")">
#{id,jdbcType=TINYINT} #{id,jdbcType=INTEGER}
</foreach> </foreach>
</update> </update>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!