用户收件地址字段名称修改
parent
982bdcd9ad
commit
60102c7bc7
|
@ -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());
|
||||
|
|
|
@ -75,5 +75,5 @@ public class AddressRespDTO {
|
|||
*
|
||||
* true - 收货人所在区
|
||||
*/
|
||||
private Boolean isDel;
|
||||
private Boolean deleted;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue