From 5077bc10f6101aa84b2a20183cb726c5520b14be Mon Sep 17 00:00:00 2001 From: hwh2023 <598694955@qq.com> Date: Thu, 24 Aug 2023 11:24:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Function/FunctionSerivce.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.AppMagager/Function/FunctionSerivce.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.AppMagager/Function/FunctionSerivce.cs index 36cae7255..056f0116d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.AppMagager/Function/FunctionSerivce.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.AppMagager/Function/FunctionSerivce.cs @@ -133,8 +133,13 @@ namespace Learun.Application.AppMagager var strSql = new StringBuilder(); strSql.Append("SELECT "); strSql.Append(sql); - strSql.Append(" ,s.F_Scheme FROM LR_App_Function t LEFT JOIN LR_App_FnScheme s on t.F_SchemeId = s.F_Id where t.F_EnabledMark = 1 ORDER BY F_SortCode "); - + strSql.Append(" ,s.F_Scheme "); + //FROM LR_App_Function t LEFT JOIN LR_App_FnScheme s on t.F_SchemeId = s.F_Id where t.F_EnabledMark = 1 ORDER BY F_SortCode "); + strSql.Append(" FROM LR_App_Function t "); + strSql.Append(" LEFT JOIN LR_App_FnScheme s on t.F_SchemeId = s.F_Id "); + strSql.Append(" INNER join LR_Base_DataItemDetail t1 on t1.f_itemvalue=t.f_type "); + strSql.Append(" INNER JOIN LR_Base_DataItem t2 ON t1.F_ItemId = t2.F_ItemId "); + strSql.Append(" where t.F_EnabledMark = 1 and t2.F_ItemCode = 'function' AND t1.F_DeleteMark = 0 and t1.F_EnabledMark=1 Order By t1.F_SortCode "); return this.BaseRepository().FindList(strSql.ToString()); } catch (Exception ex)