From 112110f92471b894c05beef2150aaa1069abb139 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo Date: Wed, 22 May 2024 09:36:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(all):=20=E4=BF=AE=E6=94=B9=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E4=BD=93=E7=B3=BB=E6=97=B6=E9=97=B4=E8=BE=B9=E7=95=8C?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BasicdataPriceServiceImpl.java | 27 +++++-------------- 1 file changed, 6 insertions(+), 21 deletions(-) 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);