From 37b2158fe0f7a70b618d097a354236ed75ba1e7f Mon Sep 17 00:00:00 2001 From: cb <275647614@qq.com> Date: Tue, 22 Apr 2025 14:53:55 +0800 Subject: [PATCH] no message --- .../src/main/java/com/ghy/customer/domain/CustomerAddress.java | 3 +++ .../ghy/customer/service/impl/CustomerAddressServiceImpl.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ghy-custom/src/main/java/com/ghy/customer/domain/CustomerAddress.java b/ghy-custom/src/main/java/com/ghy/customer/domain/CustomerAddress.java index d1cb827e..7879087e 100644 --- a/ghy-custom/src/main/java/com/ghy/customer/domain/CustomerAddress.java +++ b/ghy-custom/src/main/java/com/ghy/customer/domain/CustomerAddress.java @@ -63,4 +63,7 @@ public class CustomerAddress extends BaseEntity { private List streetIds; private Boolean needNameFlag = false; + + /*是否删除id*/ + private Long isDelete; } diff --git a/ghy-custom/src/main/java/com/ghy/customer/service/impl/CustomerAddressServiceImpl.java b/ghy-custom/src/main/java/com/ghy/customer/service/impl/CustomerAddressServiceImpl.java index eb7d6a22..f5f6be78 100644 --- a/ghy-custom/src/main/java/com/ghy/customer/service/impl/CustomerAddressServiceImpl.java +++ b/ghy-custom/src/main/java/com/ghy/customer/service/impl/CustomerAddressServiceImpl.java @@ -26,6 +26,9 @@ public class CustomerAddressServiceImpl implements CustomerAddressService { @Override public List getCustomerAddressList(CustomerAddress customerAddress) { logger.info("查询地址的参数{}",customerAddress); + if (customerAddress.getIsDelete()==null) { + customerAddress.setIsDelete(0L); + } List addressList = customerAddressMapper.getCustomerAddressList(customerAddress); logger.info("查询后的地址的值{}",addressList); if(customerAddress.getNeedNameFlag()){