cnf
2025-09-10 aebd2d642e19ce9ccb253c671b239e7ed9fc91c6
WebApi/Gs.Report/QLController.cs
@@ -1,16 +1,17 @@
using System.Data;
using System.Data.SqlClient;
using System.Dynamic;
using Gs.Toolbox;
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 System.Security.Cryptography.X509Certificates;
using static Gs.Toolbox.UtilityHelper;
namespace Gs.Report;
namespace Gs.Report
{
[ApiGroup(ApiGroupNames.Report)]
public class QLController : IRomteService
{
@@ -33,8 +34,7 @@
    public ReturnDto<ExpandoObject> GetQLList([FromBody] dynamic model)
    {
        string orgId = model.orgId ?? "";
        string beginDate =
            model.beginDate ?? DateTime.Now.AddMonths(-1).ToString();
            string beginDate = model.beginDate ?? DateTime.Now.AddMonths(-1).ToString();
        string endDate = model.endDate ?? DateTime.Now.ToString();
        dynamic m = new ExpandoObject();
        m.list = new List<dynamic>();
@@ -61,10 +61,8 @@
        {
            LogHelper.Debug(ToString(), ex.Message);
        }
        if (m != null)
            return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success,
                "读取成功!");
                return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, "读取成功!");
        return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Default, "读取失败!");
    }
@@ -78,8 +76,7 @@
    public ReturnDto<ExpandoObject> GetShjhList([FromBody] dynamic model)
    {
        string orgId = model.orgId ?? "";
        string beginDate =
            model.beginDate ?? DateTime.Now.AddMonths(-1).ToString();
            string beginDate = model.beginDate ?? DateTime.Now.AddMonths(-1).ToString();
        string endDate = model.endDate ?? DateTime.Now.ToString();
        dynamic m = new ExpandoObject();
        m.list = new List<dynamic>();
@@ -104,10 +101,8 @@
        {
            LogHelper.Debug(ToString(), ex.Message);
        }
        if (m != null)
            return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success,
                "读取成功!");
                return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Success, "读取成功!");
        return ReturnDto<dynamic>.QuickReturn(m, ReturnCode.Default, "读取失败!");
    }
@@ -129,7 +124,7 @@
            new("@inEveryPageSize", everyPageSize),
            new("@inSortName", sortName),
            new("@inSortOrder", ""),
            new("@inQueryWhere", keyWhere)
            new("@inQueryWhere", keyWhere),
        };
        var dset = new DataSet();
        var _pglist = new PageList<dynamic>
@@ -166,3 +161,4 @@
            ReturnCode.Success, "读取成功");
    }
}
}