Commit 809b7586 by shuhu.hou@freemud.cn

套餐特价添加为空校验

parent 0a267a0a
......@@ -133,7 +133,7 @@ public class SetMealServiceImpl implements IPromotionService {
*/
private String getTotalAmount(CartGoods cartGoods, long productGroupAmount, Map<String, Integer> numberMap, Map<String, ActivityCalculationDiscountResponseDto.CalculationDiscountResult.Goods> goodsMap) {
if (goodsMap.get(cartGoods.getGoodsId()).getDiscountAmount() == 0) {
if (goodsMap.isEmpty()||goodsMap.get(cartGoods.getGoodsId()).getDiscountAmount() == 0) {
cartGoods.setAmount((cartGoods.getFinalPrice() + productGroupAmount) * cartGoods.getQty());
return "";
}
......
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