From 1ba5822a8635fe76ae7243b678a38c59e4cd425a Mon Sep 17 00:00:00 2001 From: wuweihua <88888888> Date: Mon, 2 Nov 2026 10:05:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BmsCustomerPriceSetServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java b/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java index 049278e2..5370ed66 100644 --- a/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java +++ b/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java @@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DuplicateKeyException; import org.springframework.stereotype.Service; import com.bms.common.exception.ServiceException; +import com.bms.common.utils.DateUtils; import com.bms.customer.customerinfo.domain.BmsCustomer; import com.bms.customer.customerinfo.domain.BmsCustomerPriceSet; import com.bms.customer.customerinfo.domain.BmsCustomerPriceSetBatch; @@ -93,7 +94,7 @@ public class BmsCustomerPriceSetServiceImpl implements IBmsCustomerPriceSetServi if (existing != null) { bind.setCustomerPricesetId(existing.getCustomerPricesetId()); - // 弹框已不再采集生效/失效日期,未传入时保留库中原值 + // UI no longer collects bind dates: keep existing when not passed. if (bind.getPrBegindate() == null) { bind.setPrBegindate(existing.getPrBegindate()); @@ -106,6 +107,11 @@ public class BmsCustomerPriceSetServiceImpl implements IBmsCustomerPriceSetServi } else { + // pr_begindate NOT NULL; UI omits it — default to now (same as price-set bind). + if (bind.getPrBegindate() == null) + { + bind.setPrBegindate(DateUtils.getNowDate()); + } rows = bindMapper.insertBind(bind); } }