店铺到期时间为空的 标识店铺未激活

This commit is contained in:
2025-12-03 11:26:50 +08:00
parent 3076f913dd
commit ad58d5f2e5

View File

@@ -137,10 +137,14 @@ public class AuthorizationServiceImpl implements AuthorizationService {
if (shopInfo == null) {
throw new CzgException("商户不存在");
}
// 过期时间校验
if (shopInfo.getExpireTime() != null) {
if ((DateUtil.date().toLocalDateTime().isAfter(shopInfo.getExpireTime()))) {
throw new CzgException("店铺已到期,请联系区域经理续费");
if (shopInfo.getId() != 1) {
// 过期时间校验
if (shopInfo.getExpireTime() != null) {
if ((DateUtil.date().toLocalDateTime().isAfter(shopInfo.getExpireTime()))) {
throw new CzgException("店铺已到期,请联系区域经理续费");
}
} else {
throw new CzgException("店铺未激活");
}
}
boolean isAllowAccountLogin = shopBranchService.isAllowAccountLogin(shopInfo.getId());