Commit 09be6f47 by duanhq

指定技工时可看见当前用户下所有技工 by duanht 2019/3/20

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18663 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 0b78358d
...@@ -1115,12 +1115,11 @@ ...@@ -1115,12 +1115,11 @@
su.phone_number phoneNumber, su.phone_number phoneNumber,
su.id, su.id,
3 orgType 3 orgType
FROM sys_resource_matching srm LEFT JOIN sys_service_mechanic ssm ON srm.user_id = ssm.service_id FROM sys_user su
LEFT JOIN sys_user su ON ssm.mechanic_id = su.id LEFT JOIN sys_user_services sus ON su.id = sus.user_id LEFT JOIN sys_mechanic sm ON sm.user_id = su.id
WHERE srm.merchant_id = #{merchantId,jdbcType=INTEGER} WHERE sm.mechanic_status = 'sys_user_status_pass_check'
AND su.user_status = 'sys_user_status_normal' AND su.user_status = 'sys_user_status_normal'
AND su.user_type = 3 AND su.user_type = 3
AND ssm.service_id = #{id,jdbcType=INTEGER}
<if test="orgId != null"> <if test="orgId != null">
AND su.org_id = #{orgId,jdbcType=INTEGER} AND su.org_id = #{orgId,jdbcType=INTEGER}
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!