员工账号bug修复

This commit is contained in:
张松
2025-03-01 16:46:07 +08:00
parent ae299466e5
commit 87a59ad3e5

View File

@@ -82,7 +82,7 @@ public class ShopStaffServiceImpl extends ServiceImpl<ShopStaffMapper, ShopStaff
if (count > 0) { if (count > 0) {
throw new ApiNotPrintException("此账户名已存在"); throw new ApiNotPrintException("此账户名已存在");
} }
sysUser.setAccount(shopStaffEditDTO.getAccountName()); sysUser.setAccount(StpKit.USER.getLoginIdAsString() + "@" + shopStaffEditDTO.getAccountName());
} }
sysUserService.updateById(sysUser); sysUserService.updateById(sysUser);