From adee7a71ba7ab1b63cab63381dfe1846437853d6 Mon Sep 17 00:00:00 2001 From: wzp <2040239371@qq.com> Date: 星期四, 02 三月 2023 17:37:05 +0800 Subject: [PATCH] 增加分销商配置 --- web/Dao/GwDmDao.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/web/Dao/GwDmDao.cs b/web/Dao/GwDmDao.cs index b7a424e..11c7df2 100644 --- a/web/Dao/GwDmDao.cs +++ b/web/Dao/GwDmDao.cs @@ -1,7 +1,7 @@ 锘� using Common; using Model; -using Oracle.DataAccess.Client; +using Oracle.ManagedDataAccess.Client; using System; using System.Collections.Generic; using System.Data.Common; @@ -11,7 +11,7 @@ { public class GwDmDao : IDisposable { - public List<GwDm> LoadInfoList(string ApID, string OpID, string spID, string DestnationId, string sDate, out int recordcount, int pageSize, int PageIndex) + public List<GwDm> LoadInfoList(string ApID, string OpID, string spID, string DestnationId, string sDate, string permissionsSQL, out int recordcount, int pageSize, int PageIndex) { List<GwDm> list1 = new List<GwDm>(); recordcount = 0; @@ -49,6 +49,10 @@ list2.Add(oracleParameter); stringBuilder.Append(" and SP_ID=:SP_ID "); } + + //瀹㈡埛鏉冮檺SQL鑴氭湰 + stringBuilder.Append(permissionsSQL); + using (OracleDataReader reader = OracleHelper.ExecuteReader(" select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, list2.ToArray())) { while (((DbDataReader) reader).Read()) @@ -110,7 +114,7 @@ { } - public List<GwDm> LoadInfoList(string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, out int recordcount, int pageSize, int pageIndex) + public List<GwDm> LoadInfoList(string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, string permissionsSQL, out int recordcount, int pageSize, int pageIndex) { List<GwDm> list = new List<GwDm>(); recordcount = 0; @@ -138,6 +142,10 @@ ((DbParameter) oracleParameterArray[0]).Value = (object) destnationId; stringBuilder.Append(" and MOBILE=:DestnationId"); } + + //瀹㈡埛鏉冮檺SQL鑴氭湰 + stringBuilder.Append(permissionsSQL); + using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, oracleParameterArray)) { while (((DbDataReader) reader).Read()) -- Gitblit v1.9.1