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