啊鑫
9 天以前 f2b71fe1d3c2b7651d525a5b5bbe66fad602ea06
WebApi/Gs.Report/CkController.cs
@@ -1,17 +1,16 @@
using Gs.Toolbox;
using System.Data;
using System.Data.SqlClient;
using System.Dynamic;
using Gs.Toolbox;
using Gs.Toolbox.ApiCore.Abstract.Mvc;
using Gs.Toolbox.ApiCore.Common.Mvc;
using Gs.Toolbox.ApiCore.Group;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Data;
using System.Data.SqlClient;
using System.Dynamic;
using static Gs.Toolbox.UtilityHelper;
namespace Gs.Report
{
namespace Gs.Report;
    [ApiGroup(ApiGroupNames.Report)]
    public class CkController : IRomteService
@@ -92,7 +91,8 @@
        /// <param name="model"></param>
        /// <returns></returns>
        [RequestMethod(RequestMethods.POST)]
        public ReturnDto<PageList<dynamic>> GetListPageCgmx([FromBody] dynamic model)
    public ReturnDto<PageList<dynamic>> GetListPageCgmx(
        [FromBody] dynamic model)
        {
            int currentPage = model.currentPage;
            int everyPageSize = model.everyPageSize;
@@ -141,10 +141,10 @@
            {
                LogHelper.Debug(ToString(), ex.Message);
            }
            return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
                ReturnCode.Success, "读取成功");
        }
        /// <summary>
@@ -153,7 +153,8 @@
        /// <param name="model"></param>
        /// <returns></returns>
        [RequestMethod(RequestMethods.POST)]
        public ReturnDto<PageList<dynamic>> GetListPageYtmx([FromBody] dynamic model)
    public ReturnDto<PageList<dynamic>> GetListPageYtmx(
        [FromBody] dynamic model)
        {
            int currentPage = model.currentPage;
            int everyPageSize = model.everyPageSize;
@@ -214,7 +215,8 @@
        /// <param name="model"></param>
        /// <returns></returns>
        [RequestMethod(RequestMethods.POST)]
        public ReturnDto<PageList<dynamic>> GetListPageShjh([FromBody] dynamic model)
    public ReturnDto<PageList<dynamic>> GetListPageShjh(
        [FromBody] dynamic model)
        {
            int currentPage = model.currentPage;
            int everyPageSize = model.everyPageSize;
@@ -263,6 +265,7 @@
            {
                LogHelper.Debug(ToString(), ex.Message);
            }
            return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
                ReturnCode.Success, "读取成功");
        }
@@ -279,12 +282,13 @@
            dynamic m = new ExpandoObject();
            SqlParameter[] parameters =
            {
                new("@inMainGuid", guid),
            new("@inMainGuid", guid)
            };
            var dset = new DataSet();
            try
            {
                dset = DbHelperSQL.RunProcedure("[report_cktm_MX]", parameters, "0");
            dset = DbHelperSQL.RunProcedure("[report_cktm_MX]", parameters,
                "0");
                if (dset != null && dset.Tables.Count > 0 &&
                    dset.Tables[0].Rows.Count > 0)
                {
@@ -310,7 +314,8 @@
        /// <param name="model"></param>
        /// <returns></returns>
        [RequestMethod(RequestMethods.POST)]
        public ReturnDto<PageList<dynamic>> GetListPageJskc([FromBody] dynamic model)
    public ReturnDto<PageList<dynamic>> GetListPageJskc(
        [FromBody] dynamic model)
        {
            int currentPage = model.currentPage;
            int everyPageSize = model.everyPageSize;
@@ -359,8 +364,8 @@
            {
                LogHelper.Debug(ToString(), ex.Message);
            }
            return ReturnDto<PageList<dynamic>>.QuickReturn(_pglist,
                ReturnCode.Success, "读取成功");
        }
    }
}