员工重复账号

员工登录
角色重复
This commit is contained in:
2024-08-01 18:13:12 +08:00
parent 25b4a4ca2f
commit 9fcc5df6b9
5 changed files with 21 additions and 11 deletions

View File

@@ -100,7 +100,7 @@ public class TbPlussShopStaffServiceImpl implements TbPlussShopStaffService {
if (!PhoneUtil.validator(resources.getPhone())){
throw new BadRequestException("手机号格式有误");
}
if (userRepository.findByUsername(resources.getAccount()) != null) {
if (userRepository.findByUsername(resources.getShopId()+"@"+resources.getAccount()) != null) {
throw new BadRequestException("员工账号已存在");
}