This commit is contained in:
wangjinlei
2023-12-12 11:29:01 +08:00
parent 0376420aca
commit c3453e3aa5

View File

@@ -391,12 +391,12 @@ public class BuyOrderServiceImpl extends ServiceImpl<BuyOrderDao, BuyOrder> impl
ConsigneeVo consigneeVo = new ConsigneeVo();
consigneeVo.setConsigneeName(b.getShippingUser());
consigneeVo.setConsigneeMobile(b.getUserPhone());
County county = countyService.getOne(new LambdaQueryWrapper<County>().eq(County::getCountyName, b.getDistrict()));
consigneeVo.setCounty(county.getCountyName());
consigneeVo.setCountyCode(county.getRegionCode());
City city = cityService.getOne(new LambdaQueryWrapper<City>().eq(City::getCityId, county.getCityId()));
City city = cityService.getOne(new LambdaQueryWrapper<City>().eq(City::getCityName, b.getCity()));
consigneeVo.setCity(city.getCityName());
consigneeVo.setCityCode(city.getRegionCode());
County county = countyService.getOne(new LambdaQueryWrapper<County>().eq(County::getCountyName,b.getDistrict()).eq(County::getCityId,city.getCityId()));
consigneeVo.setCounty(county.getCountyName());
consigneeVo.setCountyCode(county.getRegionCode());
Province province = provinceService.getOne(new LambdaQueryWrapper<Province>().eq(Province::getProvId, city.getProvId()));
consigneeVo.setProvince(province.getProvName());
consigneeVo.setProvinceCode(province.getRegionCode());