Commit f10d0997 by 缪晖

Merge branch '紧急优化codev4接口-20220614' into 'master'

购物车优化 codev4调用传递商品id

See merge request !143
parents 9ed1ba15 a35c7e29
......@@ -29,6 +29,7 @@ public class Finals {
public static final String CHANNEL_ID_LIST = "channelIds";
public static final String CHANNEL_CODE_LIST = "channelCodes";
public static final String IS_QUERY_STORE = "isQueryStore";
public static final String SHOPPINGCARD_PRODUCTS = "shoppingCardProducts";
public static final Integer PRODUCT_COUPON = 0;
public static final Integer CASH_COUPON = 1;
public static final Integer ELSE_COUPON = 2;
......
......@@ -21,4 +21,9 @@ public class GetMemberCouponRequestVo {
//是否 校验券门店是否可用
private Boolean checkStoreId = false;
/**
* 购物车中的开个店商品id列表,多个用逗号分隔
*/
private String shoppingCardProducts;
}
......@@ -150,6 +150,9 @@ public class CouponServiceImpl implements CouponService {
// 由于门店服务老是慢,这个参数可以控制不查门店服务, 返回的数据也不需要门店数据
map.put(Finals.IS_QUERY_STORE, false);
map.put(Finals.SIGN, "adapterV4Skip" + requestVo.getPartnerId());
if (StringUtils.isNotEmpty(requestVo.getShoppingCardProducts())) {
map.put(Finals.SHOPPINGCARD_PRODUCTS, requestVo.getShoppingCardProducts());
}
GetCouponDetailResponseDto responseDto = couponOnlineClient.getCouponDetails(map);
if (ResponseCodeConstant.RESPONSE_SUCCESS_1.equals(responseDto.getResult())) {
return responseDto;
......@@ -740,6 +743,7 @@ public class CouponServiceImpl implements CouponService {
requestVo.setCouponCode(couponCode);
requestVo.setStoreId(requestDto.getStoreId());
requestVo.setCheckStoreId(true);
requestVo.setShoppingCardProducts(goodsId);
GetCouponDetailResponseDto couponDetailResponseDto = this.getMemberCoupon(requestVo);
if (couponDetailResponseDto == null || !couponDetailResponseDto.getResult().equals(ResponseCodeConstant.RESPONSE_SUCCESS_1) || CollectionUtils.isEmpty(couponDetailResponseDto.getDetails())) {
return 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