using CommonHelper; using GasolineBlend.DAL; using GasolineBlend.Entity; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static GasolineBlend.Entity.ArticleDataPage; namespace GasolineBlend.BLL { public class ArticleDataBLL { private ArticleDataDAL _acc = new ArticleDataDAL(); /// /// 获取用益信托网记录数据 /// /// public PaginatedResult GetArticleDataList(string Platform, string ArticleType, string Scope, string Keyword, int PageNumber, int PageSize, int UserId) { QccSearchInfoBLL qccSearchInfoBll = new QccSearchInfoBLL(); int totalCount = _acc.GetArticleDataCount(Platform, ArticleType, Scope, Keyword); int totalPage = (int)Math.Ceiling((double)totalCount / PageSize); List totalData = _acc.GetArticleDataList(Platform, ArticleType, Scope, Keyword, PageNumber, PageSize,UserId); return new PaginatedResult(totalData, totalCount, totalPage); } /// /// 获取用益信托网记录数据 /// /// public PaginatedResult GetArticleCollectionList(string Platform, string ArticleType, string Keyword, int PageNumber, int PageSize, int UserId) { QccSearchInfoBLL qccSearchInfoBll = new QccSearchInfoBLL(); int totalCount = _acc.GetArticleCollectionCount(Platform, ArticleType, Keyword, UserId); int totalPage = (int)Math.Ceiling((double)totalCount / PageSize); List totalData = _acc.GetArticleCollectionList(Platform, ArticleType, Keyword, PageNumber, PageSize, UserId); return new PaginatedResult(totalData, totalCount, totalPage); } public PaginatedResult GetDeclarationtimeList(string Keyword, int Time, int PageNumber, int PageSize, string Region) { int totalCount = _acc.GetDeclarationtimeCount(Keyword, Time, Region); int totalPage = (int)Math.Ceiling((double)totalCount / PageSize); List totalData = _acc.GetDeclarationtimeList(Keyword, Time, PageNumber, PageSize, Region); return new PaginatedResult(totalData, totalCount, totalPage); } /// /// 获取用益信托网记录数据 /// /// public List GetDepartmentCollectionList(string UserId) { return _acc.GetDepartmentCollectionList(UserId); } } }