Commit 68e2ee75 by xiaoer.li@freemud.com

Merge remote-tracking branch 'remotes/origin/feature/促销算价基于最新master的分支' into qa

parents d158e453 84c439fc
...@@ -326,6 +326,7 @@ public class FullSharingService { ...@@ -326,6 +326,7 @@ public class FullSharingService {
public HashMap<String, Long> drawnFullDiscount(List<CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.SmallMaterial> materialDiscount,List<Integer> typeEnums,int type) { public HashMap<String, Long> drawnFullDiscount(List<CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.SmallMaterial> materialDiscount,List<Integer> typeEnums,int type) {
HashMap<String, Long> hashMap = new HashMap<>(); HashMap<String, Long> hashMap = new HashMap<>();
for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.SmallMaterial smallMaterial : materialDiscount) { for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.SmallMaterial smallMaterial : materialDiscount) {
if (CollectionUtils.isEmpty(smallMaterial.getDiscounts())) continue;
for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GoodsDiscount discount : smallMaterial.getDiscounts()) { for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GoodsDiscount discount : smallMaterial.getDiscounts()) {
if (typeEnums.contains(discount.getType())) { if (typeEnums.contains(discount.getType())) {
hashMap.put(discount.getGoodsId(),discount.getDiscount()); hashMap.put(discount.getGoodsId(),discount.getDiscount());
...@@ -341,6 +342,7 @@ public class FullSharingService { ...@@ -341,6 +342,7 @@ public class FullSharingService {
public HashMap<String, Long> drawnFullDiscount(List<CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GroupCombox> groupCombDiscount,List<Integer> typeEnums) { public HashMap<String, Long> drawnFullDiscount(List<CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GroupCombox> groupCombDiscount,List<Integer> typeEnums) {
HashMap<String, Long> hashMap = new HashMap<>(); HashMap<String, Long> hashMap = new HashMap<>();
for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GroupCombox com : groupCombDiscount) { for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GroupCombox com : groupCombDiscount) {
if (CollectionUtils.isEmpty(com.getDiscounts())) continue;
for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GoodsDiscount discount : com.getDiscounts()) { for (CalculationSharingDiscountResponseDto.CalculationDiscountResult.Goods.GoodsDiscount discount : com.getDiscounts()) {
if (typeEnums.contains(discount.getType())) { if (typeEnums.contains(discount.getType())) {
hashMap.put(discount.getGoodsId(),discount.getDiscount()); hashMap.put(discount.getGoodsId(),discount.getDiscount());
......
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