Disable cannot change user's name feature

This commit is contained in:
Bingkun Li 2026-01-28 16:38:16 +08:00
parent 74fd20b462
commit af7208449d

View File

@ -59,10 +59,10 @@ public class SysUserServiceImpl implements ISysUserService {
@Transactional
@Override
public SysUser update(SysUser e) {
SysUser local = sysUserMapper.selectByAccount(e.getAccount(), null);
if (!e.getId().equals(local.getId()) && e.getAccount().equals(local.getAccount())) {
throw ServiceException.noLog("账号已存在,不可重复!");
}
// SysUser local = sysUserMapper.selectByAccount(e.getAccount(), null);
// if (!e.getId().equals(local.getId()) && e.getAccount().equals(local.getAccount())) {
// throw ServiceException.noLog("账号已存在,不可重复!");
// }
sysUserMapper.updateNotNull(e);
return e;
}