From 1c9b90d3d9d2507a6d688d663127ac1500b78f91 Mon Sep 17 00:00:00 2001 From: liujiang <569804566@qq.com> Date: Thu, 23 Oct 2025 11:33:17 +0800 Subject: [PATCH] =?UTF-8?q?master=EF=BC=9A=E7=8E=B0=E9=87=91=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=B8=8D=E5=8F=AF=E7=BC=96=E8=BE=91=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/xkt/service/impl/StoreCustomerServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreCustomerServiceImpl.java b/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreCustomerServiceImpl.java index 826735165..1b31c8d48 100644 --- a/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreCustomerServiceImpl.java +++ b/xkt/src/main/java/com/ruoyi/xkt/service/impl/StoreCustomerServiceImpl.java @@ -137,6 +137,10 @@ public class StoreCustomerServiceImpl implements IStoreCustomerService { StoreCustomer storeCus = Optional.ofNullable(this.storeCusMapper.selectOne(new LambdaQueryWrapper() .eq(StoreCustomer::getId, storeCusDTO.getStoreCusId()).eq(StoreCustomer::getDelFlag, Constants.UNDELETED))) .orElseThrow(() -> new ServiceException("档口客户不存在!")); + // 不允许删现金客户 + if (Objects.equals(storeCus.getCusName(), Constants.STORE_CUS_CASH)) { + throw new ServiceException("请勿编辑现金客户!", HttpStatus.ERROR); + } if (StringUtils.isNotBlank(storeCusDTO.getPhone())) { final String regex = "^1[3-9]\\d{9}$"; if (!Pattern.matches(regex, storeCusDTO.getPhone().trim())) {