Browse Source

调整原始数据查询

lcl 3 tháng trước cách đây
mục cha
commit
8193698fec
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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);