Pārlūkot izejas kodu

调整原始数据查询

lcl 3 mēneši atpakaļ
vecāks
revīzija
8193698fec
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      Util/PrizeDo.cs

+ 4 - 4
Util/PrizeDo.cs

@@ -400,9 +400,9 @@ namespace Util
                         }
                     }
                     sql = "select " + fields + " from " + tableEnName + " where 1=1" + condi;
-                    if(!string.IsNullOrEmpty(queryTable.tableEnName))
+                    if(!string.IsNullOrEmpty(queryTable.orderBy))
                     {
-                        sql += " " + queryTable.tableEnName;
+                        sql += " order by " + queryTable.orderBy;
                     }
                     sql += " limit 1";
                 }
@@ -2170,9 +2170,9 @@ namespace Util
 
                 var db = initDb(queryTable.databaseId);
                 string sql = "select " + fields + " from " + tableEnName + " where 1=1" + condi;
-                if(!string.IsNullOrEmpty(queryTable.tableEnName))
+                if(!string.IsNullOrEmpty(queryTable.orderBy))
                 {
-                    sql += " " + queryTable.tableEnName;
+                    sql += " order by " + queryTable.orderBy;
                 }
                 sql += " limit 1";
                 var items = db.Ado.GetDataTable(sql);