fix-维修店登录

This commit is contained in:
xl
2024-07-13 18:17:15 +08:00
parent 63c5a37f41
commit cd8ad8a5d9

View File

@@ -202,7 +202,7 @@ public class LoginServiceImpl implements LoginService {
user = userService.getById(systemAdmin.getAppUserId());
}
Merchant merchant = merchantService.getById(user.getMerId());
if (ObjectUtil.isNull(merchant)) {
if (ObjectUtil.isNull(merchant) || merchant.getIsDel()) {
throw new ServiceException("维修店未创建");
}
return commonLogin(user, 0);