Commit 639eafeb by fanjiaxin

联调问题处理

parent 79a76339
Pipeline #71567 passed with stages
in 57 seconds
......@@ -365,7 +365,7 @@ public class DrmSharerConfig {
boolean isSuccess = false;
try {
// 设置推客分佣比例
weChatShopSetSharerProductCommissionRequest.handle(sharerAppid, newBo.getProductId(), commissionRatio.toPlainString());
weChatShopSetSharerProductCommissionRequest.handle(sharerAppid, Integer.valueOf(newBo.getProductId()), commissionRatio.toPlainString());
isSuccess = true;
} catch (Exception e) {
log.error("设置推客的的分佣类型和比例信息失败", e);
......@@ -391,7 +391,7 @@ public class DrmSharerConfig {
try {
// 设置推客分佣比例
weChatShopSetSharerProductCommissionRequest.handle(sharerAppid,
oldBo.getProductId(), null);
Integer.valueOf(oldBo.getProductId()), null);
isSuccess = true;
} catch (Exception e) {
log.error("设置推客的的分佣类型和比例信息失败", e);
......
......@@ -54,7 +54,7 @@ public class ProductServiceImpl implements IProductService {
.stream()
.map(item -> {
WeChatPromoteProductDetailVO detailVO = weChatShopPromoteProductDetailRequest.handle(item.getShop_appid(),
item.getProduct_id());
Integer.valueOf(item.getProduct_id()));
if (null == detailVO) {
return null;
}
......@@ -102,7 +102,7 @@ public class ProductServiceImpl implements IProductService {
listVO.setShopAppid(item.getShop_appid());
listVO.setProductId(item.getProduct_id());
// 获取推广链接
WeChatPromoteProductLinkVO promoteProductLinkVO = weChatShopPromoteProductLinkRequest.handle(item.getProduct_id(),
WeChatPromoteProductLinkVO promoteProductLinkVO = weChatShopPromoteProductLinkRequest.handle(Integer.valueOf(item.getProduct_id()),
item.getShop_appid());
listVO.setProductUrl(null != promoteProductLinkVO ? promoteProductLinkVO.getShort_link() : null);
return listVO;
......
......@@ -41,7 +41,7 @@ public class WeChatShopGetSharerProductCommissionRequest implements IWeChatReque
/**
* 处理
*/
public WeChatGetSharerProductCommissionVO handle(String sharerAppid, String productId) {
public WeChatGetSharerProductCommissionVO handle(String sharerAppid, Integer productId) {
WeChatGetSharerProductCommissionBO params = WeChatGetSharerProductCommissionBO.builder()
.sharer_appid(sharerAppid)
.product_id(productId)
......
......@@ -42,7 +42,7 @@ public class WeChatShopPromoteProductDetailRequest implements IWeChatRequest {
/**
* 处理
*/
public WeChatPromoteProductDetailVO handle(String shopAppid, String productId) {
public WeChatPromoteProductDetailVO handle(String shopAppid, Integer productId) {
WeChatPromoteProductDetailBO params = WeChatPromoteProductDetailBO.builder()
.plan_type(ProductPlanTypeEnum.OPEN.getCode())
.shop_appid(shopAppid)
......
......@@ -41,7 +41,7 @@ public class WeChatShopPromoteProductLinkRequest implements IWeChatRequest {
/**
* 处理
*/
public WeChatPromoteProductLinkVO handle(String productId, String shopAppid) {
public WeChatPromoteProductLinkVO handle(Integer productId, String shopAppid) {
WeChatPromoteProductLinkBO params = WeChatPromoteProductLinkBO.builder()
.product_id(productId)
.shop_appid(shopAppid)
......
......@@ -41,7 +41,7 @@ public class WeChatShopSetSharerProductCommissionRequest implements IWeChatReque
/**
* 处理
*/
public WeChatCoreVO handle(String sharerAppid, String productId, String commissionRatio) {
public WeChatCoreVO handle(String sharerAppid, Integer productId, String commissionRatio) {
WeChatSetSharerProductCommissionBO params = WeChatSetSharerProductCommissionBO.builder()
.sharer_appid(sharerAppid)
.product_id(productId)
......
......@@ -22,5 +22,5 @@ public class WeChatGetSharerProductCommissionBO implements Serializable {
/**
* 商品列表
*/
private String product_id;
private Integer product_id;
}
......@@ -22,7 +22,7 @@ public class WeChatPromoteProductDetailBO implements Serializable {
/**
* 商品id
*/
private String product_id;
private Integer product_id;
/**
* 商品的计划类型 1:定向计划 2:公开计划
*/
......
......@@ -26,7 +26,7 @@ public class WeChatPromoteProductLinkBO implements Serializable {
/**
* 商品 id,如果使用该参数,需要传入shop_appid
*/
private String product_id;
private Integer product_id;
/**
* 商品所属店铺 appid
*/
......
......@@ -22,7 +22,7 @@ public class WeChatSetSharerProductCommissionBO implements Serializable {
/**
* 商品列表
*/
private String product_id;
private Integer product_id;
/**
* 平台分佣时的分佣比例,范围为【100000 - 900000】,代表【10%-90%】
*/
......
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