diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/OrderServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/OrderServiceImpl.java index 7c8ae3f38..536346d02 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/OrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/OrderServiceImpl.java @@ -51,7 +51,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.core.annotation.OrderUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.support.TransactionTemplate; import cn.iocoder.yudao.framework.common.util.date.DateUtils; @@ -1120,7 +1119,7 @@ public class OrderServiceImpl implements OrderService { if (orderRequest.getShippingType() == 1) { // 快递配送 if (orderRequest.getAddressId() <= 0) throw new ServiceException("请选择收货地址"); AddressRespDTO userAddress = addressApi.getById(orderRequest.getAddressId()); - if (ObjectUtil.isNull(userAddress) || userAddress.getIsDel()) { + if (ObjectUtil.isNull(userAddress) || userAddress.getDeleted()) { throw new ServiceException("收货地址有误"); } orderRequest.setRealName(userAddress.getName()); diff --git a/yudao-module-member/yudao-module-member-api/src/main/java/cn/iocoder/yudao/module/member/api/address/dto/AddressRespDTO.java b/yudao-module-member/yudao-module-member-api/src/main/java/cn/iocoder/yudao/module/member/api/address/dto/AddressRespDTO.java index 050d72965..7233d4b69 100644 --- a/yudao-module-member/yudao-module-member-api/src/main/java/cn/iocoder/yudao/module/member/api/address/dto/AddressRespDTO.java +++ b/yudao-module-member/yudao-module-member-api/src/main/java/cn/iocoder/yudao/module/member/api/address/dto/AddressRespDTO.java @@ -75,5 +75,5 @@ public class AddressRespDTO { * * true - 收货人所在区 */ - private Boolean isDel; + private Boolean deleted; }