no message

This commit is contained in:
cb 2025-04-30 17:36:19 +08:00
parent d6028c3e1e
commit 930a9e3de8
1 changed files with 24 additions and 10 deletions

View File

@ -1593,17 +1593,31 @@ public class OrderController extends BaseController {
} }
String addressSysArea = sysArea.getMergerName(); String addressSysArea = sysArea.getMergerName();
String[] array = addressSysArea.split(","); String[] array = addressSysArea.split(",");
if (StringUtils.isEmpty(master.getProvinceName())){
orderListResponse.setProvinceName(array[0]);
orderListResponse.setCityName(array[1]);
orderListResponse.setCountryName(array[2]);
orderListResponse.setStreetName(array[3]);
orderListResponse.setProvinceId(customerAddress.getProvinceId());
orderListResponse.setCityId(customerAddress.getCityId());
orderListResponse.setCountryId(customerAddress.getCountryId());
orderListResponse.setStreetId(customerAddress.getStreetId());
orderListResponse.setPhone(customerAddress.getPhone());
orderListResponse.setName(customerAddress.getName());
}else{
orderListResponse.setProvinceName(master.getProvinceName());
orderListResponse.setCityName(master.getCityName());
orderListResponse.setCountryName(master.getCountryName());
orderListResponse.setStreetName(master.getStreetName());
orderListResponse.setProvinceId(master.getProvinceId());
orderListResponse.setCityId(master.getCityId());
orderListResponse.setCountryId(master.getCountryId());
orderListResponse.setStreetId(master.getStreetId());
orderListResponse.setPhone(master.getPhone());
orderListResponse.setName(master.getName());
}
orderListResponse.setProvinceName(array[0]);
orderListResponse.setCityName(array[1]);
orderListResponse.setCountryName(array[2]);
orderListResponse.setStreetName(array[3]);
orderListResponse.setProvinceId(customerAddress.getProvinceId());
orderListResponse.setCityId(customerAddress.getCityId());
orderListResponse.setCountryId(customerAddress.getCountryId());
orderListResponse.setStreetId(customerAddress.getStreetId());
orderListResponse.setPhone(customerAddress.getPhone());
orderListResponse.setName(customerAddress.getName());
logger.info("所有的列表信息{}", orderListResponse); logger.info("所有的列表信息{}", orderListResponse);
orderListResponses.add(orderListResponse); orderListResponses.add(orderListResponse);