Commit 86704a57 authored by huyuchen's avatar huyuchen

ldap同步用户部门问题修改

parent 38fcf303
......@@ -241,6 +241,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
Map<String,Object> map = new HashMap<>();
map.put("userId",userId);
map.put("deptId",sysDeptCount.getDeptId());
map.put("deptName",deptName);
updUserList.add(map);
}else {
sysDeptCount.setName(deptName);
......
......@@ -493,6 +493,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
Map<String,Object> map = new HashMap<>();
map.put("userId",userId);
map.put("deptId",sysDeptCount.getDeptId());
map.put("deptName",deptName);
updUserList.add(map);
}else {
sysDeptCount.setName(deptName);
......
......@@ -255,13 +255,6 @@
</if>
</foreach>
</trim>
<trim prefix="deptId =case" suffix="end," >
<foreach collection="list" item="i" index="index">
<if test="i.deptId!=null">
when username=#{i.uid} then #{i.deptId}
</if>
</foreach>
</trim>
<trim prefix="update_time =case" suffix="end,">
<foreach collection="list" item="i" index="index">
when username=#{i.uid} then now()
......@@ -289,6 +282,13 @@
when username=#{i.userId} then now()
</foreach>
</trim>
<trim prefix="dept_name =case" suffix="end,">
<foreach collection="list" item="i" index="index">
<if test="i.deptName!=null">
when username=#{i.userId} then #{i.deptName}
</if>
</foreach>
</trim>
</trim>
where
<foreach collection="list" separator="or" item="i" index="index" >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment