chenzx
2024-11-25 68f761dcdef9149f148508e5df8f1c2970934f15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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);
        }
 
 
 
    }
}