Commit 2358119b by zhangjing

fixed BUG#20304

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23749 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 62e5a19a
...@@ -1135,14 +1135,15 @@ ...@@ -1135,14 +1135,15 @@
<select id="getUserByIdAndName" resultType="com.glsx.usercenter.pojo.user.SysUser"> <select id="getUserByIdAndName" resultType="com.glsx.usercenter.pojo.user.SysUser">
SELECT SELECT
DISTINCT
u.id id, u.id id,
u.name name, u.name name,
sm.provider_name serviceName,
u.org_id orgId u.org_id orgId
FROM FROM
sys_user u sys_user u
LEFT JOIN sys_user_org uo ON uo.org_id = u.org_id LEFT JOIN sys_user_org uo ON uo.org_id = u.org_id
LEFT JOIN sys_organization so ON uo.org_id = so.id LEFT JOIN sys_organization so ON uo.org_id = so.id
LEFT JOIN sys_manager sm ON sm.user_id = u.id
WHERE u.user_type = 1 WHERE u.user_type = 1
and u.user_status='sys_user_status_normal' and u.user_status='sys_user_status_normal'
and u.group_id = #{orgId,jdbcType=INTEGER} and u.group_id = #{orgId,jdbcType=INTEGER}
...@@ -1150,7 +1151,7 @@ ...@@ -1150,7 +1151,7 @@
AND uo.user_id = #{id,jdbcType=INTEGER} AND uo.user_id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="name != null and name!=''"> <if test="name != null and name!=''">
AND u.name LIKE "%"#{name,jdbcType=VARCHAR}"%" AND sm.provider_name LIKE "%"#{name,jdbcType=VARCHAR}"%"
</if> </if>
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!