免押支付加openId
This commit is contained in:
@ -38,10 +38,11 @@ public interface PayService {
|
||||
* @param companyId
|
||||
* @param outTradeNo
|
||||
* @param authNo
|
||||
* @param aliPayOpenId
|
||||
* @param totalFee
|
||||
* @return
|
||||
*/
|
||||
UnifiedPaymentInfoDTO zhimaPayOrder(String body, Long companyId, String outTradeNo, String authNo, BigDecimal totalFee);
|
||||
UnifiedPaymentInfoDTO zhimaPayOrder(String body, Long companyId, String outTradeNo, String authNo, String aliPayOpenId,BigDecimal totalFee);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -425,7 +425,7 @@ public class OrderServiceImpl implements OrderService {
|
||||
//开始发起支付
|
||||
// UnifiedPaymentInfoDTO unifiedPaymentInfoDTO = payService.prepayOrder(rentCarOrder.getPaymentMethod(),orderMainPO.getRentCarRuleId().toString(),orderMainPO.getOperatorId(),rentCarOrder.getPaymentId(),userInfoDTO
|
||||
// ,orderMainPO.getOrderAmount());
|
||||
UnifiedPaymentInfoDTO unifiedPaymentInfoDTO = payService.zhimaPayOrder("闪充智行租车免押支付",orderMainPO.getOperatorId(),rentCarOrder.getPaymentId(),noDepositOrder.getTransactionId(),orderMainPO.getOrderAmount());
|
||||
UnifiedPaymentInfoDTO unifiedPaymentInfoDTO = payService.zhimaPayOrder("闪充智行租车免押支付",orderMainPO.getOperatorId(),rentCarOrder.getPaymentId(),noDepositOrder.getTransactionId(),userInfoDTO.getAlipayOpenid(),orderMainPO.getOrderAmount());
|
||||
LambdaUpdateWrapper<OrderSubPO> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
updateWrapper.eq(OrderSubPO::getSuborderId, noDepositOrder.getSuborderId())
|
||||
.eq(OrderSubPO::getDelFlag, "0")
|
||||
|
||||
@ -90,13 +90,14 @@ public class PayServiceImpl implements PayService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public UnifiedPaymentInfoDTO zhimaPayOrder(String body, Long companyId, String outTradeNo, String authNo, BigDecimal totalFee) {
|
||||
public UnifiedPaymentInfoDTO zhimaPayOrder(String body, Long companyId, String outTradeNo, String authNo, String aliPayOpenId,BigDecimal totalFee) {
|
||||
AlipayCreateRequest alipayCreateRequest = new AlipayCreateRequest();
|
||||
alipayCreateRequest.setCompanyId(companyId);
|
||||
alipayCreateRequest.setSubject(body);
|
||||
alipayCreateRequest.setBody(body);
|
||||
alipayCreateRequest.setOutTradeNo(outTradeNo);
|
||||
alipayCreateRequest.setAuthNo(authNo);
|
||||
alipayCreateRequest.setOpenId(aliPayOpenId);
|
||||
alipayCreateRequest.setTotalAmount(totalFee.toString());
|
||||
return payInteg.zhiMaOrder(alipayCreateRequest);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user