|
|
|
@@ -11,6 +11,9 @@ import com.iformall.domain.po.*; |
|
|
|
import com.iformall.domain.po.base.BaseEntity; |
|
|
|
import com.iformall.domain.vo.WxMerchantSubsidyVo; |
|
|
|
import com.iformall.domain.vo.WxOrderQueryVo; |
|
|
|
import com.iformall.douyin.pay.TtPayService; |
|
|
|
import com.iformall.douyin.pay.exception.TtPayException; |
|
|
|
import com.iformall.douyin.payv2.result.TtSettleResult; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import com.iformall.service.*; |
|
|
|
@@ -59,8 +62,18 @@ public class WxOrderController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private WxCUserBasicInfoService wxCUserBasicInfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxAppinfoService wxAppinfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxPayAccountService wxPayAccountService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private MaUtil maUtil; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
OrderFactory orderFactory; |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("分页列表接口") |
|
|
|
@GetMapping("list") |
|
|
|
@@ -276,5 +289,23 @@ public class WxOrderController extends BaseController { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("") |
|
|
|
@GetMapping("test") |
|
|
|
@SystemControllerLog(description = "") |
|
|
|
public ResultData test(Long composeOrderId) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxOrderController::test"); |
|
|
|
|
|
|
|
WxAppinfo appInfo = wxAppinfoService.getCAppInfo(getTenantInfo(), EnumAppPlat.TOUTIAO); |
|
|
|
WxPayAccount payAccount = wxPayAccountService.getById(appInfo.getPayId()); |
|
|
|
TtPayService ttPayService = maUtil.getTtPayService(appInfo, payAccount); |
|
|
|
List<TtSettleResult> settleResultList = null; |
|
|
|
try { |
|
|
|
settleResultList = ttPayService.getProfitSharingV2Service().getOrderSettle(composeOrderId.toString()); |
|
|
|
} catch (TtPayException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
return new ResultData(settleResultList); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |