diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java index f8111857b..84da64314 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceServiceImpl.java @@ -217,7 +217,7 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl 0) { throw new ServiceException("生效时间大于到期时间,请检查。"); } + if (DateUtil.beginOfDay(new Date()).isAfter(vo.getExpiryTime())) { + throw new ServiceException("到期时间不能小于当前时间,请检查。"); + } // 只能维护当前时间的版本,时间范围必须包含当前时间 Long clientId1 = vo.getClientId(); Long brandId1 = vo.getBrandId(); @@ -293,24 +296,6 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl priceEntities = this.list(wrapper);