Commit 132650df authored by zhengyi's avatar zhengyi

对与价格特殊加价的参数去重处理

Signed-off-by: default avatarzhengyi <landuo321@aliyun.com>
parent 1b1bf3a9
......@@ -994,7 +994,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
});
} else {
Map<String, ProductPriceSpecialDO> dictTypeMap = productPriceSpecialDOList.stream()
.collect(Collectors.toMap(ProductPriceSpecialDO::getSpecialDictType, v -> v));
.collect(Collectors.toMap(ProductPriceSpecialDO::getSpecialDictType, v -> v, (v1,v2) -> v2));
specialList.forEach(t -> {
String dictType = t.getSpecialDictType();
ProductPriceSpecialDO productPriceSpecialDO = dictTypeMap.get(dictType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment