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();
|
|
/// <summary>
|
/// 获取用益信托网记录数据
|
/// </summary>
|
/// <returns></returns>
|
public PaginatedResult<ArticleDataPage> 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<ArticleDataPage> totalData = _acc.GetArticleDataList(Platform, ArticleType, Scope, Keyword, PageNumber, PageSize,UserId);
|
return new PaginatedResult<ArticleDataPage>(totalData, totalCount, totalPage);
|
}
|
|
/// <summary>
|
/// 获取用益信托网记录数据
|
/// </summary>
|
/// <returns></returns>
|
public PaginatedResult<ArticleDataPage> 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<ArticleDataPage> totalData = _acc.GetArticleCollectionList(Platform, ArticleType, Keyword, PageNumber, PageSize, UserId);
|
return new PaginatedResult<ArticleDataPage>(totalData, totalCount, totalPage);
|
}
|
|
public PaginatedResult<ArticleDataPage> 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<ArticleDataPage> totalData = _acc.GetDeclarationtimeList(Keyword, Time, PageNumber, PageSize, Region);
|
return new PaginatedResult<ArticleDataPage>(totalData, totalCount, totalPage);
|
}
|
/// <summary>
|
/// 获取用益信托网记录数据
|
/// </summary>
|
/// <returns></returns>
|
public List<ArticleDataPage> GetDepartmentCollectionList(string UserId)
|
{
|
return _acc.GetDepartmentCollectionList(UserId);
|
}
|
|
|
|
}
|
}
|