Merge branch 'main' of http://182.92.203.107:3000/libingkun/skyeyesystem
This commit is contained in:
commit
39e2c6ea81
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user