no message
This commit is contained in:
parent
368f943211
commit
700b261e36
|
|
@ -560,6 +560,7 @@ public class OrderController extends BaseController {
|
|||
|
||||
//处理新增订单的地址
|
||||
CustomerAddress customerAddress=customerAddressService.selectByCustomerAddressId(appOrderRequest.getAddressId());
|
||||
logger.info("下单后的地址信息{}",customerAddress);
|
||||
orderMaster.setProvinceId(customerAddress.getProvinceId());
|
||||
orderMaster.setCityId(customerAddress.getCityId());
|
||||
orderMaster.setCountryId(customerAddress.getCountryId());
|
||||
|
|
|
|||
|
|
@ -1308,6 +1308,7 @@ public class OrderMasterController extends BaseController {
|
|||
orderListResponse.setIsCall(orderMaster.getIsCall());
|
||||
orderListResponse.setAddress(orderMaster.getAddress());
|
||||
|
||||
if (!StringUtils.isEmpty(orderMaster.getProvinceName())){
|
||||
orderListResponse.setProvinceId(orderMaster.getProvinceId());
|
||||
orderListResponse.setCityId(orderMaster.getCityId());
|
||||
orderListResponse.setCountryId(orderMaster.getCountryId());
|
||||
|
|
@ -1319,6 +1320,20 @@ public class OrderMasterController extends BaseController {
|
|||
orderListResponse.setCountryName(orderMaster.getCountryName());
|
||||
orderListResponse.setStreetId(orderMaster.getStreetId());
|
||||
orderListResponse.setStreetName(orderMaster.getStreetName());
|
||||
}else{
|
||||
orderListResponse.setProvinceId(customerAddress.getProvinceId());
|
||||
orderListResponse.setCityId(customerAddress.getCityId());
|
||||
orderListResponse.setCountryId(customerAddress.getCountryId());
|
||||
orderListResponse.setAddress(customerAddress.getAddress());
|
||||
orderListResponse.setPhone(customerAddress.getPhone());
|
||||
orderListResponse.setName(customerAddress.getName());
|
||||
orderListResponse.setProvinceName(customerAddress.getProvinceName());
|
||||
orderListResponse.setCityName(customerAddress.getCityName());
|
||||
orderListResponse.setCountryName(customerAddress.getCountryName());
|
||||
orderListResponse.setStreetId(customerAddress.getStreetId());
|
||||
orderListResponse.setStreetName(customerAddress.getStreetName());
|
||||
}
|
||||
|
||||
|
||||
return AjaxResult.success(orderListResponse);
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue