店铺信息修改
This commit is contained in:
parent
e1581a60b4
commit
34bf880aa9
|
|
@ -78,7 +78,7 @@ public class ShopStaffServiceImpl extends ServiceImpl<ShopStaffMapper, ShopStaff
|
|||
}
|
||||
|
||||
if (StrUtil.isNotBlank(shopStaffEditDTO.getAccountName()) && !shopStaffEditDTO.getAccountName().equals(sysUser.getAccount())) {
|
||||
long count = sysUserService.count(new QueryWrapper().eq(SysUser::getAccount, shopStaffEditDTO.getAccountName()));
|
||||
long count = sysUserService.count(new QueryWrapper().eq(SysUser::getAccount, shopStaffEditDTO.getAccountName()).ne(SysUser::getId, sysUser.getId()));
|
||||
if (count > 0) {
|
||||
throw new ApiNotPrintException("此账户名已存在");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue