Commit 137b3899 authored by luzhuang's avatar luzhuang

去除用户部门前公司名称

parent 933d7541
...@@ -120,7 +120,11 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -120,7 +120,11 @@ public class SysUserServiceImpl implements SysUserService {
} }
} }
if (!sb.toString().equals("")) { if (!sb.toString().equals("")) {
sysUser.setDepart(sb.toString().substring(0, sb.toString().length() - 1)); String string = sb.toString().substring(0, sb.toString().length() - 1);
if(string.indexOf("-") != -1){
string = string.substring(string.indexOf("-")+1);
}
sysUser.setDepart(string);
} }
sb = new StringBuffer(); sb = new StringBuffer();
sysUser.setPosition(position); sysUser.setPosition(position);
......
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