/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System;
using System.Linq.Expressions;
using System.Threading.Tasks;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.Basics;
using CoreCms.Net.Model.ViewModels.UI;
using SqlSugar;
namespace CoreCms.Net.IServices
{
///
/// 退款单表 服务工厂接口
///
public interface ICoreCmsBillRefundServices : IBaseServices
{
///
/// 创建退款单
///
///
///
/// 1订单,2充值,5服务订单
///
///
///
Task ToAdd(int userId, string sourceId, int type, decimal money, string aftersalesId);
///
/// 退款单去退款或者拒绝
///
/// 退款单id
/// 2或者4,通过或者拒绝
/// 退款方式,如果和退款单上的一样,说明没有修改,原路返回,否则只记录状态,不做实际退款,如果为空是原路返回
///
Task ToRefund(string refundId, int status, string paymentCodeStr = "");
///
/// 如果是在线支付的原路退还,去做退款操作
///
Task PaymentRefund(string refundId);
#region 重写根据条件查询分页数据
///
/// 重写根据条件查询分页数据
///
/// 判断集合
/// 排序方式
/// 当前页面索引
/// 分布大小
///
/// 是否使用WITH(NOLOCK)
///
Task> QueryPageAsync(
Expression> predicate,
Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1,
int pageSize = 20, bool blUseNoLock = false);
#endregion
}
}