Commit de593ba8 by zhangjing

PC端服务商管理-- 功能调整

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23304 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent ccbfd834
...@@ -78,13 +78,13 @@ ...@@ -78,13 +78,13 @@
<choose> <choose>
<when test="userId != 0 and userId!=''"> <when test="userId != 0 and userId!=''">
FROM FROM
sys_user_org suo sys_user u
LEFT JOIN sys_manager sm ON sm.user_id = u.id
LEFT JOIN sys_user_org suo ON suo.user_id = u.id
LEFT JOIN sys_organization so ON suo.org_id = so.id LEFT JOIN sys_organization so ON suo.org_id = so.id
LEFT JOIN sys_manager sm ON sm.user_id = suo.user_id
LEFT JOIN sys_user u ON u.org_id = so.id
LEFT JOIN sys_user_services sus ON sm.user_id = sus.user_id LEFT JOIN sys_user_services sus ON sm.user_id = sus.user_id
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
LEFT JOIN sys_service_area ssa ON ssa.service_provider_id = su.id LEFT JOIN sys_service_area ssa ON ssa.service_provider_id = u.id
LEFT JOIN sys_area sa ON sa.id = ssa.area_id LEFT JOIN sys_area sa ON sa.id = ssa.area_id
</when> </when>
<otherwise> <otherwise>
...@@ -97,11 +97,11 @@ ...@@ -97,11 +97,11 @@
LEFT JOIN sys_area sa ON sa.id = ssa.area_id LEFT JOIN sys_area sa ON sa.id = ssa.area_id
</otherwise> </otherwise>
</choose> </choose>
WHERE u.user_type = 1 WHERE u.user_type = 1 and (
or u.id like #{conditions,jdbcType=VARCHAR} u.id like #{conditions,jdbcType=VARCHAR}
or sm.provider_name like #{conditions,jdbcType=VARCHAR} or sm.provider_name like #{conditions,jdbcType=VARCHAR}
or sdd.data_value like #{conditions,jdbcType=VARCHAR} or sdd.data_value like #{conditions,jdbcType=VARCHAR}
or sa.area_name like #{conditions,jdbcType=VARCHAR} or sa.area_name like #{conditions,jdbcType=VARCHAR})
<choose> <choose>
<when test="userStatus != null and userStatus!=''"> <when test="userStatus != null and userStatus!=''">
and u.user_status = #{userStatus,jdbcType=VARCHAR} and u.user_status = #{userStatus,jdbcType=VARCHAR}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!