Disable cannot change user's name feature
This commit is contained in:
parent
74fd20b462
commit
af7208449d
@ -59,10 +59,10 @@ public class SysUserServiceImpl implements ISysUserService {
|
|||||||
@Transactional
|
@Transactional
|
||||||
@Override
|
@Override
|
||||||
public SysUser update(SysUser e) {
|
public SysUser update(SysUser e) {
|
||||||
SysUser local = sysUserMapper.selectByAccount(e.getAccount(), null);
|
// SysUser local = sysUserMapper.selectByAccount(e.getAccount(), null);
|
||||||
if (!e.getId().equals(local.getId()) && e.getAccount().equals(local.getAccount())) {
|
// if (!e.getId().equals(local.getId()) && e.getAccount().equals(local.getAccount())) {
|
||||||
throw ServiceException.noLog("账号已存在,不可重复!");
|
// throw ServiceException.noLog("账号已存在,不可重复!");
|
||||||
}
|
// }
|
||||||
sysUserMapper.updateNotNull(e);
|
sysUserMapper.updateNotNull(e);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user