|
|
|
@ -2,33 +2,18 @@ package com.qniao.dam.application.service.paymentchannelorder; |
|
|
|
|
|
|
|
import com.qniao.dam.api.command.paymentchannelorder.user.request.ThirdPartyField; |
|
|
|
import com.qniao.dam.application.service.paymentchannelorder.processor.IChannelPayService; |
|
|
|
import com.qniao.dam.domain.aggregate.paymentchannelorder.PaymentChannelOrderAggregate; |
|
|
|
import com.qniao.dam.domain.aggregate.paymentchannelorder.entity.PaymentChannelOrder; |
|
|
|
import com.qniao.dam.domain.aggregate.paymentorder.entity.PaymentOrder; |
|
|
|
import com.qniao.dam.domain.aggregate.paymentorder.repository.PaymentOrderRepository; |
|
|
|
import com.qniao.dam.query.thirdoauthconfig.ThirdOauthConfigQueryService; |
|
|
|
import com.qniao.dam.query.useropenid.UserOpenIdQueryService; |
|
|
|
import com.qniao.dau.application.UecServerApplicationService; |
|
|
|
import com.qniao.dau.application.request.GetWechatSessionDto; |
|
|
|
import com.qniao.dau.application.response.WeChatAppletUserSessionVo; |
|
|
|
import com.qniao.dau.domain.aggregate.thirdoauthconfig.valueobj.ThirdOauthConfig; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@Service |
|
|
|
public class PaymentChannelOrderApplicationService { |
|
|
|
|
|
|
|
@Resource |
|
|
|
private ThirdOauthConfigQueryService thirdOauthConfigQueryService; |
|
|
|
/** |
|
|
|
/* |
|
|
|
* todo 旧的付款单失效处理? |
|
|
|
*/ |
|
|
|
public Map<String, String> prePay(PaymentChannelOrder paymentChannelOrder, List<ThirdPartyField> fieldList, Long appFrom) { |
|
|
|
IChannelPayService channelPayService = IChannelPayService.getService(paymentChannelOrder.getPaymentMethod()); |
|
|
|
return channelPayService.prepay(paymentChannelOrder, fieldList,appFrom); |
|
|
|
return channelPayService.prepay(paymentChannelOrder, fieldList, appFrom); |
|
|
|
} |
|
|
|
} |