Commit cbc1c5e2 by 周晓航

Merge branch 'KA-2.0.41-爱马哥预订单开发-zxh' of…

Merge branch 'KA-2.0.41-爱马哥预订单开发-zxh' of gitlab.freemud.com:order-group-application/order-group into KA-2.0.41-爱马哥预订单开发-zxh
parents 6f03854b 432e1dcb
...@@ -41,6 +41,11 @@ public class GetValidateProductInfoDto { ...@@ -41,6 +41,11 @@ public class GetValidateProductInfoDto {
*/ */
private String channel; private String channel;
/**
* 业务类型 7-预定单 爱马哥蛋糕预定场景使用(2.0.41迭代 1032929)
*/
private Integer bizType;
@Data @Data
public static class ProductInfo { public static class ProductInfo {
/** /**
......
...@@ -2913,7 +2913,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2913,7 +2913,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
// 返回构造对象 // 返回构造对象
PremiumExchangeResponseVo premiumExchangeResponseVo = new PremiumExchangeResponseVo(); PremiumExchangeResponseVo premiumExchangeResponseVo = new PremiumExchangeResponseVo();
premiumExchangeResponseVo.setResultCode(ActivityResultCodeEnum.NON_PARTICIPATE.getCode()); premiumExchangeResponseVo.setResultCode(ActivityResultCodeEnum.NON_PARTICIPATE.getCode());
List<CartGoods> cartGoodsList = assortmentSdkService.getShoppingCart(partnerId, storeId, userId, request.getSessionId(), null, shoppingCartBaseService,null); List<CartGoods> cartGoodsList = assortmentSdkService.getShoppingCart(partnerId, storeId, userId, request.getSessionId(), null, shoppingCartBaseService,bizType);
if (grayPush(partnerId, storeId, "2")) { if (grayPush(partnerId, storeId, "2")) {
// 当couponCode不为空时,需参与价格计算 // 当couponCode不为空时,需参与价格计算
ArrayList<CalculationSharingDiscountRequestDto.CalculationDiscountCoupon> coupons = new ArrayList<>(); ArrayList<CalculationSharingDiscountRequestDto.CalculationDiscountCoupon> coupons = new ArrayList<>();
...@@ -2987,6 +2987,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -2987,6 +2987,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
getProductInfoDto.setStoreId(storeId); getProductInfoDto.setStoreId(storeId);
getProductInfoDto.setChannel(menuType); getProductInfoDto.setChannel(menuType);
getProductInfoDto.setProductIds(spuIds); getProductInfoDto.setProductIds(spuIds);
getProductInfoDto.setBizType(bizType);
ValidateProductInfosDto productInfosDto = storeItemClient.validateShopContainProduct(getProductInfoDto); ValidateProductInfosDto productInfosDto = storeItemClient.validateShopContainProduct(getProductInfoDto);
if (!Objects.equals(productInfosDto.getErrcode(), Integer.valueOf(ResponseResult.SUCCESS.getCode())) if (!Objects.equals(productInfosDto.getErrcode(), Integer.valueOf(ResponseResult.SUCCESS.getCode()))
|| productInfosDto.getData() == null || productInfosDto.getData() == null
......
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