|
@@ -203,7 +203,7 @@ public class DocumentsServiceImpl extends ServiceImpl<DocumentsMapper, Documents
|
|
|
//查询卖方
|
|
|
Corporation corporation = corporationService.getById(contractVo.getSellCorporationId());
|
|
|
//查询单证货物
|
|
|
- List<DocumentsProduct> documentsProducts = documentsProductService.list(Wrappers.<DocumentsProduct>query().lambda().eq(DocumentsProduct::getDocumentsId, documents.getId()));
|
|
|
+ List<DocumentsProduct> documentsProducts = documentsProductService.getDpList(documents.getId());
|
|
|
// 赋值产品属性
|
|
|
productInfoService.attributeAssign(documentsProducts, DocumentsProduct::getBusinessId, (item, product) -> {
|
|
|
item.setProductCode(product.getCode());
|
|
@@ -420,12 +420,12 @@ public class DocumentsServiceImpl extends ServiceImpl<DocumentsMapper, Documents
|
|
|
contractVo.getSellCityId()
|
|
|
);
|
|
|
Map<Long, String> areaMap = CustomizeAreaUtil.getAreaMapByIds(areaIdList);
|
|
|
- contractVo.setBuyCountryName(areaMap.get(contractVo.getBuyCountryId()));
|
|
|
- contractVo.setBuyProvinceName(areaMap.get(contractVo.getBuyProvinceId()));
|
|
|
- contractVo.setBuyCityName(areaMap.get(contractVo.getBuyCityId()));
|
|
|
- contractVo.setSellCountryName(areaMap.get(contractVo.getSellCountryId()));
|
|
|
- contractVo.setSellProvinceName(areaMap.get(contractVo.getSellProvinceId()));
|
|
|
- contractVo.setSellCityName(areaMap.get(contractVo.getSellCityId()));
|
|
|
+ contractVo.setBuyCountryName(areaMap.getOrDefault(contractVo.getBuyCountryId(),contractVo.getBuyCountryName()));
|
|
|
+ contractVo.setBuyProvinceName(areaMap.getOrDefault(contractVo.getBuyProvinceId(),contractVo.getBuyProvinceName()));
|
|
|
+ contractVo.setBuyCityName(areaMap.getOrDefault(contractVo.getBuyCityId(),contractVo.getBuyCityName()));
|
|
|
+ contractVo.setSellCountryName(areaMap.getOrDefault(contractVo.getSellCountryId(),contractVo.getSellCountryName()));
|
|
|
+ contractVo.setSellProvinceName(areaMap.getOrDefault(contractVo.getSellProvinceId(),contractVo.getSellProvinceName()));
|
|
|
+ contractVo.setSellCityName(areaMap.getOrDefault(contractVo.getSellCityId(),contractVo.getSellCityName()));
|
|
|
}
|
|
|
|
|
|
/**
|