/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.Basics;
using CoreCms.Net.Model.ViewModels.DTO;
using CoreCms.Net.Model.ViewModels.UI;
using SqlSugar;
namespace CoreCms.Net.IServices
{
///
/// 用户对表的提交记录 服务工厂接口
///
public interface ICoreCmsFormSubmitServices : IBaseServices
{
#region 重写根据条件查询分页数据
///
/// 重写根据条件查询分页数据
///
/// 判断集合
/// 排序方式
/// 当前页面索引
/// 分布大小
///
/// 是否使用WITH(NOLOCK)
///
Task> QueryPageAsync(
Expression> predicate,
Expression> orderByExpression, OrderByType orderByType, int pageIndex = 1,
int pageSize = 20, bool blUseNoLock = false);
#endregion
///
/// 表单支付
///
/// 序列
///
Task Pay(int id);
///
/// 获取表单的统计数据
///
/// 表单序列
/// 多少天内的数据
///
Task GetStatisticsByFormId(int formId, int day);
#region 重写增删改查操作===========================================================
///
/// 重写异步插入方法并返回自增值
///
/// 实体数据
///
Task InsertReturnIdentityAsync(CoreCmsFormSubmit entity);
///
/// 重写删除指定ID的数据
///
///
///
Task DeleteByIdAsync(object id);
#endregion
}
}