namespace Yw.DAL
|
{
|
/// <summary>
|
/// 运行实时记录
|
/// </summary>
|
public interface IRunRealRecord
|
{
|
|
#region 常规获取
|
|
/// <summary>
|
/// 获取最近几条列表
|
/// </summary>
|
List<Entity.RunRealRecord> GetLastList(DateTime? StartTime, DateTime? EndTime, int Number = 1, bool? Run = null);
|
|
/// <summary>
|
/// 获取某日的最近几条数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetLastListByDay(DateTime Day, int Number = 1, bool? Run = null);
|
|
/// <summary>
|
/// 获取日期区间的最近几条数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetLastListByDayRange(DateTime StartDay, DateTime EndDay, int Number = 1, bool? Run = null);
|
|
/// <summary>
|
/// 获取时间区间的最近几条数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetLastListByTimeRange(DateTime StartTime, DateTime EndTime, int Number = 1, bool? Run = null);
|
|
/// <summary>
|
/// 获取
|
/// </summary>
|
List<Entity.RunRealRecord> Get(DateTime? StartTime, DateTime? EndTime, bool? Run = null);
|
|
/// <summary>
|
/// 获取某日的数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetByDay(DateTime Day, bool? Run = null);
|
|
/// <summary>
|
/// 获取日期区间内的数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetByDayRange(DateTime StartDay, DateTime EndDay, bool? Run = null);
|
|
/// <summary>
|
/// 获取时间区间的数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetByTimeRange(DateTime StartTime, DateTime EndTime, bool? Run = null);
|
|
/// <summary>
|
/// 获取分页列表
|
/// </summary>
|
List<Entity.RunRealRecord> GetPageList(DateTime? StartTime, DateTime? EndTime, bool? Run, int PageIndex, int PageSize, ref int Total);
|
|
#endregion
|
|
#region 通过 ObjectType 和 ObjectID 获取
|
|
/// <summary>
|
/// 通过 ObjectType 和 ObjectID 获取最近几条记录
|
/// </summary>
|
List<Entity.RunRealRecord> GetLastListByObjectTypeAndObjectID(string ObjectType, long ObjectID, int Number = 1, bool? Run = null);
|
|
/// <summary>
|
/// 通过 ObjectType 和 ObjectID 获取
|
/// </summary>
|
List<Entity.RunRealRecord> GetByObjectTypeAndObjectID(string ObjectType, long ObjectID, DateTime? StartTime, DateTime? EndTime, bool? Run = null);
|
|
/// <summary>
|
/// 通过 ObjectType 和 ObjectID 获取某日的数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetByObjectTypeAndObjectIDOfDay(string ObjectType, long ObjectID, DateTime Day, bool? Run = null);
|
|
/// <summary>
|
/// 通过 ObjectType 和 ObjectID 获取日期区间内的数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetByObjectTypeAndObjectIDOfDayRange(string ObjectType, long ObjectID, DateTime StartDay, DateTime EndDay, bool? Run = null);
|
|
/// <summary>
|
/// 通过 ObjectType 和 ObjectID 获取时间区间内的数据
|
/// </summary>
|
List<Entity.RunRealRecord> GetByObjectTypeAndObjectIDOfTimeRange(string ObjectType, long ObjectID, DateTime StartTime, DateTime EndTime, bool? Run = null);
|
|
/// <summary>
|
/// 通过 ObjectType 和 ObjectID 获取分页列表
|
/// </summary>
|
List<Entity.RunRealRecord> GetPageListByObjectTypeAndObjectID(string ObjectType, long ObjectID, DateTime? StartTime, DateTime? EndTime, bool? Run, int PageIndex, int PageSize, ref int Total);
|
|
|
#endregion
|
|
#region InsertOrUpdate
|
|
/// <summary>
|
/// 插入
|
/// </summary>
|
bool InsertOrUpdate(Entity.RunRealRecord entity);
|
|
/// <summary>
|
/// 批量插入
|
/// </summary>
|
bool InsertOrUpdate(List<Entity.RunRealRecord> list);
|
|
|
#endregion
|
|
|
|
|
}
|
}
|