Commit 9b003526 by 缪晖

群收款去除门店ID

parent 93ef5c15
...@@ -13,9 +13,6 @@ public class WechatGroupBuyVo { ...@@ -13,9 +13,6 @@ public class WechatGroupBuyVo {
@NotEmpty(message = "商户号 不能为空") @NotEmpty(message = "商户号 不能为空")
private String partnerId; private String partnerId;
@NotEmpty(message = "门店号 不能为空")
private String shopId;
@NotEmpty(message = "订单编号 不能为空") @NotEmpty(message = "订单编号 不能为空")
private String orderCode; private String orderCode;
} }
...@@ -196,7 +196,7 @@ public class CollageOrderServiceImpl implements CollageOrderService { ...@@ -196,7 +196,7 @@ public class CollageOrderServiceImpl implements CollageOrderService {
groupBuyResp.setGroupBuyOrderId(groupBuyResponse.getOrder_id()); groupBuyResp.setGroupBuyOrderId(groupBuyResponse.getOrder_id());
return ResponseUtil.success(groupBuyResp); return ResponseUtil.success(groupBuyResp);
} else { } else {
return ResponseUtil.error("创建群收款失败"); return ResponseUtil.error(null == groupBuyResponse ? ResponseResult.SYSTEM_BUSINESS_ERROR.getCode() : String.valueOf(groupBuyResponse.getErrcode()), null == groupBuyResponse ? "创建群收款失败" : groupBuyResponse.getErrmsg());
} }
} }
......
...@@ -198,6 +198,11 @@ public class ActivityCalculationDiscountResponseDto { ...@@ -198,6 +198,11 @@ public class ActivityCalculationDiscountResponseDto {
*/ */
private String artNo; private String artNo;
/**
* 买一赠一时,存赠送主商品的cartGoodsUid用于标记是哪个商品赠送的
*/
private String originalGoodsUid;
@Data @Data
public static class GoodsDiscount { public static class GoodsDiscount {
......
...@@ -734,7 +734,7 @@ public class ShoppingCartCollageServiceImpl extends AbstractShoppingCartImpl imp ...@@ -734,7 +734,7 @@ public class ShoppingCartCollageServiceImpl extends AbstractShoppingCartImpl imp
try { try {
System.out.println("start discount"); System.out.println("start discount");
System.out.println(JSON.toJSONString(activityCalculationDiscountRequestDto)); System.out.println(JSON.toJSONString(activityCalculationDiscountRequestDto));
activityCalculationDiscountResponseDto = activityClient.calculationDiscount(activityCalculationDiscountRequestDto); activityCalculationDiscountResponseDto = activityClient.calculationDiscountSharing(activityCalculationDiscountRequestDto);
} catch (Exception ex) { } catch (Exception ex) {
ErrorLog.errorConvertJson(SDKCommonBaseContextWare.getAppName(), LogThreadLocal.getTrackingNo(), getClass(), "shoppingCartCollageServiceImpl getActivityCalculationDiscountResponse:" + ex.getMessage(), ex); ErrorLog.errorConvertJson(SDKCommonBaseContextWare.getAppName(), LogThreadLocal.getTrackingNo(), getClass(), "shoppingCartCollageServiceImpl getActivityCalculationDiscountResponse:" + ex.getMessage(), ex);
throw new ServiceException(ResponseResult.OPERATE_TOO_OFTEN); throw new ServiceException(ResponseResult.OPERATE_TOO_OFTEN);
......
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