|
|
@@ -1459,7 +1459,7 @@ public class KwpGoodsService {
|
|
|
if (org.apache.commons.collections4.CollectionUtils.isEmpty(goods)) {
|
|
|
return new GoodsInfoResp();
|
|
|
}
|
|
|
- List<String> types = Arrays.asList(DictTypeEnum.PRODUCT_NAME_TYPE.getType(), DictTypeEnum.UNIT_TYPE.getType());
|
|
|
+ List<String> types = Arrays.asList(DictTypeEnum.PRODUCT_NAME_TYPE.getType(), DictTypeEnum.GOODS_SPEC.getType());
|
|
|
//组装商品参数
|
|
|
Map<String, Map<String, String>> finalValueAndDictResDtoMap = remoteSystemService.queryDictByType(types);
|
|
|
|
|
|
@@ -1477,8 +1477,9 @@ public class KwpGoodsService {
|
|
|
goodsInfo.setGoodsId(x.getId());
|
|
|
|
|
|
Map<String, String> productNameMap = valueAndDictResDtoMap.getOrDefault(DictTypeEnum.PRODUCT_NAME_TYPE.getType(), new HashMap<>());
|
|
|
- String productType = productNameMap.get(x.getGoodsType());
|
|
|
- goodsInfo.setGoodsName(x.getName() + "/" + productType + "/" + x.getSpec());
|
|
|
+ Map<String, String> goodsSpecMap = valueAndDictResDtoMap.getOrDefault(DictTypeEnum.GOODS_SPEC.getType(), new HashMap<>());
|
|
|
+ String productType = productNameMap.getOrDefault(x.getGoodsType(), "");
|
|
|
+ goodsInfo.setGoodsName(x.getName() + "/" + productType + "/" + goodsSpecMap.getOrDefault(x.getSpec(), ""));
|
|
|
|
|
|
Map<String, String> unitMap = valueAndDictResDtoMap.getOrDefault(DictTypeEnum.UNIT_TYPE.getType(), new HashMap<>());
|
|
|
goodsInfo.setAmountUnit(unitMap.get(x.getUnit()));
|