From 318d349fc009011a135dbce5a25e392b492c0718 Mon Sep 17 00:00:00 2001 From: yzh <snbbt@21cn.com> Date: 星期五, 20 五月 2022 16:49:20 +0800 Subject: [PATCH] 客户分配个性产品 系统数据权限隔离 --- web/Dao/GwSpDao.cs | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/web/Dao/GwSpDao.cs b/web/Dao/GwSpDao.cs index 848425f..7bfd4a5 100644 --- a/web/Dao/GwSpDao.cs +++ b/web/Dao/GwSpDao.cs @@ -245,7 +245,8 @@ return list1; } - public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string clientName, int routerType, string opID, int chargeType, int pageIndex, int pageSize, string resendStatus, out int recordCount, string productId ) + public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string clientName, int routerType, string opID, int chargeType, int pageIndex, int pageSize + , string resendStatus, string productId, string permissionsSQL, out int recordCount ) { List<GwSp> list1 = new List<GwSp>(); recordCount = 0; @@ -326,6 +327,10 @@ list2.Add(new OracleParameter(":ProductId", (object)productId)); stringBuilder.Append(" and Product_Id=:ProductId"); } + + //瀹㈡埛鏉冮檺SQL鑴氭湰 + stringBuilder.Append(permissionsSQL); + stringBuilder.Append(" order by ID DESC"); using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, list2.ToArray())) { -- Gitblit v1.9.1