SVN r1207

SVN-Revision: r1207
This commit is contained in:
tdx
2026-06-10 08:39:56 +00:00
parent e28e5a2225
commit bc2ddd9966
+2 -2
View File
@@ -226,12 +226,12 @@ namespace Lskj.Core
string sqlStr = "";
if (!string.IsNullOrEmpty(contextMenuId + "") && !(contextMenuId + "").Equals("0"))
{
sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar,contextMenuId)+',')>0 order by orderValue", operateEvent, contextMenuId);
sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar(8000),contextMenuId)+',')>0 order by orderValue", operateEvent, contextMenuId);
}
else
{
sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar,dllcoid)+',')>0 order by orderValue", operateEvent, moduleId);
sqlStr = string.Format("select * from p_systemEventApiTab where actionType=0 and charIndex(','+eType+',',',{0},')>0 and charIndex(',{1},',','+convert(varchar(8000),dllcoid)+',')>0 order by orderValue", operateEvent, moduleId);
}
DataTable tbVal = SqlHelper.ExecuteDataTable(sqlStr);
if (tbVal.Rows.Count > 0)