Commit b82cc67e by ping.wu

商品券支持套餐

parent fe4aa3c7
...@@ -625,7 +625,8 @@ public class CalculationCommonService { ...@@ -625,7 +625,8 @@ public class CalculationCommonService {
HashMap<String, BlockRow> map = new HashMap<>(); HashMap<String, BlockRow> map = new HashMap<>();
if (goods == null) return map; if (goods == null) return map;
//固定搭配 //固定搭配
if (isFixed) { if (isFixed ) {
if(CollectionUtils.isNotEmpty(goods.getGroupCombox())){
for (GroupCombox gx : goods.getGroupCombox()) { for (GroupCombox gx : goods.getGroupCombox()) {
BlockRow blockRow = new BlockRow(); BlockRow blockRow = new BlockRow();
blockRow.setDiscountAmount(gx.getDiscountAmount()); blockRow.setDiscountAmount(gx.getDiscountAmount());
...@@ -652,6 +653,7 @@ public class CalculationCommonService { ...@@ -652,6 +653,7 @@ public class CalculationCommonService {
map.put(gx.getGoodsId(), blockRow); map.put(gx.getGoodsId(), blockRow);
} }
} }
}
//可选搭配及小料 //可选搭配及小料
else { else {
List<BlockRow> blockRows = new ArrayList<>(); List<BlockRow> blockRows = new ArrayList<>();
......
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