|
|
@@ -58,15 +58,15 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
|
|
|
- Fields.Add("Title", "1"); //标题
|
|
|
-
|
|
|
-
|
|
|
string condition = " and Status>-1";
|
|
|
if(SysUserName != "admin")
|
|
|
{
|
|
|
condition += " and CONCAT(',', AdminNames,',') like '%," + SysUserName + ",%'";
|
|
|
}
|
|
|
-
|
|
|
+ if(!string.IsNullOrEmpty(data.Title))
|
|
|
+ {
|
|
|
+ condition += " and Title like '%" + data.Title + "%'";
|
|
|
+ }
|
|
|
|
|
|
Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("CustomQuery", Fields, "Id desc", "0", page, limit, condition);
|
|
|
List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|