店铺信息修改

This commit is contained in:
张松 2025-03-01 16:33:25 +08:00
parent e1581a60b4
commit 34bf880aa9
1 changed files with 1 additions and 1 deletions

View File

@ -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("此账户名已存在");
}