免押支付加openId

This commit is contained in:
2025-09-29 23:59:47 +08:00
parent 19a5bde9b0
commit d9fe7405eb
3 changed files with 5 additions and 3 deletions

View File

@ -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);
/**

View File

@ -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")

View File

@ -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);