用户收件地址字段名称修改

pull/2/head
js199000131 2023-05-15 10:26:17 +08:00
parent 982bdcd9ad
commit 60102c7bc7
2 changed files with 2 additions and 3 deletions

View File

@ -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());

View File

@ -75,5 +75,5 @@ public class AddressRespDTO {
*
* true -
*/
private Boolean isDel;
private Boolean deleted;
}