42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
|
|
package com.cdzy.payment.service;
|
|||
|
|
|
|||
|
|
import com.mybatisflex.core.service.IService;
|
|||
|
|
import com.cdzy.payment.model.entity.EbikeRefund;
|
|||
|
|
import com.wechat.pay.java.service.payments.model.Transaction;
|
|||
|
|
import com.wechat.pay.java.service.refund.model.Refund;
|
|||
|
|
|
|||
|
|
import java.util.List;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 用户订单退款记录 服务层。
|
|||
|
|
*
|
|||
|
|
* @author dingchao
|
|||
|
|
* @since 2025-04-25
|
|||
|
|
*/
|
|||
|
|
public interface EbikeRefundService extends IService<EbikeRefund> {
|
|||
|
|
/**
|
|||
|
|
* 保存退款记录
|
|||
|
|
*
|
|||
|
|
* @param ebikeRefund 退款结果
|
|||
|
|
* @return 保存成功返回主键id,否则返回null
|
|||
|
|
*/
|
|||
|
|
Boolean saveRefundResult(EbikeRefund ebikeRefund);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 查询未成功退款订单
|
|||
|
|
*
|
|||
|
|
* @param duration 订单创建时间超过duration分钟,单位分钟
|
|||
|
|
* @return 未成功退款订单列表
|
|||
|
|
*/
|
|||
|
|
List<EbikeRefund> getNoSuccessRefundOrderByDuration(int duration);
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 更新退款状态
|
|||
|
|
*
|
|||
|
|
* @param refundId 退款ID
|
|||
|
|
* @param refund 退款结果
|
|||
|
|
* @return 更新成功返回true,否则返回false
|
|||
|
|
*/
|
|||
|
|
Boolean updateRefundStatus(String refundId, Refund refund);
|
|||
|
|
}
|