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()){