using Dapper;
using System.Threading.Tasks;
using Znyc.Recruitment.Admin.Commons.IDbContext;
using Znyc.Recruitment.Admin.Commons.Repositories;
using Znyc.Recruitment.Admin.Security.Entitys;
using Znyc.Recruitment.Admin.Security.IRepositories;
namespace Znyc.Recruitment.Admin.Security.Repositories
{
///
///
public class StatisticalRepository : BaseRepository, IStatisticalRepository
{
///
///
public StatisticalRepository()
{
}
public StatisticalRepository(IDbContextCore dbContext) : base(dbContext)
{
}
///
/// 获取前一天数据统计
///
///
public async Task GetStatisticalAsync()
{
string sql = @"SELECT * FROM sys_statistical ORDER BY CreatedTime DESC";
return await DapperConn.QueryFirstOrDefaultAsync(sql);
}
}
}