Commit c2e6e6dc by chongfu.liang

商品券多次添加fix

parent b72946f4
...@@ -127,7 +127,7 @@ public interface ShoppingCartNewService { ...@@ -127,7 +127,7 @@ public interface ShoppingCartNewService {
if (checkSpqInfoResponseDto == null) { if (checkSpqInfoResponseDto == null) {
throw new ServiceException(ResponseResult.SHOPPING_CART_COUPON_NOT_EXIST); throw new ServiceException(ResponseResult.SHOPPING_CART_COUPON_NOT_EXIST);
} }
if (!checkSpqInfoResponseDto.getIsMultiCoupon() && couponQty > 1) { if (!checkSpqInfoResponseDto.getIsMultiCoupon() && couponQty != null && couponQty > 1) {
throw new ServiceException(ResponseResult.SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE); throw new ServiceException(ResponseResult.SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE);
} }
if (couponProductDto != null) { if (couponProductDto != null) {
...@@ -164,7 +164,7 @@ public interface ShoppingCartNewService { ...@@ -164,7 +164,7 @@ public interface ShoppingCartNewService {
if (checkSpqInfoResponseDto == null) { if (checkSpqInfoResponseDto == null) {
throw new ServiceException(ResponseResult.SHOPPING_CART_COUPON_MIX_NOT_EXIST); throw new ServiceException(ResponseResult.SHOPPING_CART_COUPON_MIX_NOT_EXIST);
} }
if (!checkSpqInfoResponseDto.getIsMultiCoupon() && couponQty > 1) { if (!checkSpqInfoResponseDto.getIsMultiCoupon() && couponQty != null && couponQty > 1) {
throw new ServiceException(ResponseResult.SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE); throw new ServiceException(ResponseResult.SHOPPING_CART_GOODS_COUPON_CAN_NOT_USE);
} }
productIds.add(Long.parseLong(checkSpqInfoResponseDto.getSkuId())); productIds.add(Long.parseLong(checkSpqInfoResponseDto.getSkuId()));
......
...@@ -121,7 +121,7 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService { ...@@ -121,7 +121,7 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService {
productIds.add(Long.parseLong(goodsId)); productIds.add(Long.parseLong(goodsId));
} else { } else {
//校验券是否有效 //校验券是否有效
spuId2 = validCoupon(partnerId, storeId, spuId, productIds, BusinessTypeEnum.getByType(requestVo.getMenuType()).getCode(), null); spuId2 = validCoupon(partnerId, storeId, spuId, productIds, BusinessTypeEnum.getByType(requestVo.getMenuType()).getCode(), null, null);
} }
// 获取商品信息 // 获取商品信息
List<ProductBeanDTO> productBeanListSpuClass = List<ProductBeanDTO> productBeanListSpuClass =
......
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