|
|
|
@@ -155,18 +155,18 @@ public class TtPayShareService extends PayShareBaseAdapterService{ |
|
|
|
@Override |
|
|
|
public PayShareResult haveReciversShare(WxAppinfo appInfo,WxPayAccount payAccount,WxProfitSharingOrder record,JSONArray receivers,Integer mchType) throws MallinkException { |
|
|
|
|
|
|
|
//判断佣金是否已经出来了,没出来返回错误 |
|
|
|
WxOrder order = wxOrderMapper.selectById(record.getSingleOrderId(), appInfo.getTenantId()); |
|
|
|
if(EnumOrderCpsStatus.ORDER_DEF_CPS.getCode().equals(order.getCpsStatus())){ |
|
|
|
//如果没有查询到佣金 |
|
|
|
return new PayShareResult(false, EnumProfitSharingOrderStatus.PROFIT_SHARING_APPLY_FAILED.getCode(),"订单未同步cps", null,null); |
|
|
|
} |
|
|
|
|
|
|
|
//TODO 购物车逻辑待处理。抖音只能所有订单都核销了才能核销 |
|
|
|
|
|
|
|
//TODO 总分要算佣金。 |
|
|
|
if(EnumPayMchType.TOTAL.getCode().equals(mchType)){ |
|
|
|
} |
|
|
|
// //判断佣金是否已经出来了,没出来返回错误 |
|
|
|
// WxOrder order = wxOrderMapper.selectById(record.getSingleOrderId(), appInfo.getTenantId()); |
|
|
|
// if(EnumOrderCpsStatus.ORDER_DEF_CPS.getCode().equals(order.getCpsStatus())){ |
|
|
|
// //如果没有查询到佣金 |
|
|
|
// return new PayShareResult(false, EnumProfitSharingOrderStatus.PROFIT_SHARING_APPLY_FAILED.getCode(),"订单未同步cps", null,null); |
|
|
|
// } |
|
|
|
// |
|
|
|
// //TODO 购物车逻辑待处理。抖音只能所有订单都核销了才能核销 |
|
|
|
// |
|
|
|
// //TODO 总分要算佣金。 |
|
|
|
// if(EnumPayMchType.TOTAL.getCode().equals(mchType)){ |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|