Commit 59c982fc by 查志伟

修复查询时赠品属性名称不正确的情况

parent 072d325d
...@@ -69,6 +69,7 @@ public class GiftCacheManager { ...@@ -69,6 +69,7 @@ public class GiftCacheManager {
if (! old.getGoodsId().equals(gift.getGoodsId()) || ! isSameType) continue; if (! old.getGoodsId().equals(gift.getGoodsId()) || ! isSameType) continue;
// 赠品匹配上了,copy赠品属性 // 赠品匹配上了,copy赠品属性
gift.setExtra(old.getExtra()); gift.setExtra(old.getExtra());
gift.setSubName(old.getSubName());
gift.setCartGoodsUid(old.getCartGoodsUid()); gift.setCartGoodsUid(old.getCartGoodsUid());
// 如果赠品为多个同一商品,并且每个商品都有不同的属性,所以这里要移除掉已经匹配上的商品 // 如果赠品为多个同一商品,并且每个商品都有不同的属性,所以这里要移除掉已经匹配上的商品
it.remove(); it.remove();
......
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