using System.Collections.Generic; using System.Threading.Tasks; using System.Web.Mvc; using RiskControl.NewService.Entity.RCY; using RiskControl.NewService.Extension; using RiskControl.NewService.Service; using SqlSugar; namespace GasolineBlend.Controllers { public class RcyController : BaseController { private readonly RcyService _rcyService = new RcyService(); /// /// 景气矩阵 /// /// /// /// /// /// [HttpPost] public async Task GetJqjzPage(int pageIndex=1, int pageSize=20, string orderByFieldName="", string orderByType="desc") { var res = await _rcyService.GetJqjzPage(pageIndex, pageSize, orderByFieldName, orderByType); return SuccessNoShow(data:res); } /// /// 景气矩阵 /// /// [HttpPost] public async Task GetJqjzList() { var res = await _rcyService.GetJqjzList(); return SuccessNoShow(data: res); } /// /// 上市地位 /// /// /// /// /// /// [HttpPost] public async Task GetSsdwPage(int pageIndex = 1, int pageSize = 20, string orderByFieldName = "", string orderByType = "desc") { var res = await _rcyService.GetSsdwPage(pageIndex, pageSize, orderByFieldName, orderByType); return SuccessNoShow(data: res); } /// /// 上市地位 /// /// [HttpPost] public async Task GetSsdwList() { var res = await _rcyService.GetSsdwList(); return SuccessNoShow(data: res); } /// /// 公司详情 /// /// /// /// /// /// [HttpPost] public async Task GetGsxqPage(int pageIndex = 1, int pageSize = 20, string orderByFieldName = "", string orderByType = "desc") { var res = await _rcyService.GetGsxqPage(pageIndex, pageSize, orderByFieldName, orderByType); return SuccessNoShow(data: res); } /// /// 公司详情 /// /// [HttpPost] public async Task GetGsxqList() { var res = await _rcyService.GetGsxqList(); return SuccessNoShow(data: res); } /// /// 产业地图 /// /// [HttpPost] public async Task GetGsxqMapData() { var res = await _rcyService.GetGsxqMapData(); return SuccessNoShow(data: res); } /// /// /// /// [HttpPost] public async Task GetChainIncomeCostPage(int pageIndex, int pageSize, string[] exchangeCodes) { var res = await _rcyService.GetChainIncomeCostPage(pageIndex, pageSize, exchangeCodes); return SuccessNoShow(data: res); } /// /// 主营分析图表接口 /// /// income,cost,grossmargin /// [HttpPost] public async Task GetChainIncomeCostChart(string type) { var res = await _rcyService.GetChainIncomeCostChart(type); return SuccessNoShow(data: res); } } }