update:修改订单地区编码问题
This commit is contained in:
parent
a47cc8f1d4
commit
cb990f37c6
|
@ -348,7 +348,9 @@ public class DouDianOrderCatchServiceImpl implements OrderCatchService {
|
|||
ordersDO.setAddressCityCode(city.getId());
|
||||
// 区
|
||||
ordersDO.setAddressDistrict(town.getName());
|
||||
ordersDO.setAddressDistrictCode(town.getId());
|
||||
if(town.getId().length() >= 6){
|
||||
ordersDO.setAddressDistrictCode(town.getId().substring(0,6));
|
||||
}
|
||||
// 街道/镇
|
||||
ordersDO.setTown(street.getName());
|
||||
// 详细地址
|
||||
|
@ -546,7 +548,9 @@ public class DouDianOrderCatchServiceImpl implements OrderCatchService {
|
|||
ordersDO.setAddressCityCode(city.getId());
|
||||
// 区
|
||||
ordersDO.setAddressDistrict(town.getName());
|
||||
ordersDO.setAddressDistrictCode(town.getId());
|
||||
if(town.getId().length() >= 6){
|
||||
ordersDO.setAddressDistrictCode(town.getId().substring(0,6));
|
||||
}
|
||||
// 街道/镇
|
||||
ordersDO.setTown(street.getName());
|
||||
// 详细地址
|
||||
|
|
Loading…
Reference in New Issue