Sfoglia il codice sorgente

读取字段改为*

zhengbingbing 5 anni fa
parent
commit
c30b0ac516
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      CallCenterApi.DAL/T_Branch_List.cs

+ 3 - 3
CallCenterApi.DAL/T_Branch_List.cs

@@ -218,7 +218,7 @@ namespace CallCenterApi.DAL
218 218
         {
219 219
 
220 220
             StringBuilder strSql = new StringBuilder();
221
-            strSql.Append("select  top 1 F_ID,F_Code,F_Name,F_Password,F_Address,F_ConName,F_ConPhone,F_ConTel,F_ConEmail,F_Url,F_Sign,F_WebSocketUrl,F_Phone,F_State,F_CreateTime,F_CreateUser,F_IsDelete,F_DeleteUser,F_DeleteTime from T_Branch_List ");
221
+            strSql.Append("select  top 1 * from T_Branch_List ");
222 222
             strSql.Append(" where F_ID=@F_ID");
223 223
             SqlParameter[] parameters = {
224 224
                     new SqlParameter("@F_ID", SqlDbType.Int,4)
@@ -344,7 +344,7 @@ namespace CallCenterApi.DAL
344 344
         public DataSet GetList(string strWhere)
345 345
         {
346 346
             StringBuilder strSql = new StringBuilder();
347
-            strSql.Append("select F_ID,F_Code,F_Name,F_Password,F_Address,F_ConName,F_ConPhone,F_ConTel,F_ConEmail,F_Url,F_Sign,F_WebSocketUrl,F_Phone,F_State,F_CreateTime,F_CreateUser,F_IsDelete,F_DeleteUser,F_DeleteTime,F_IsDP,F_IsSQ,F_AreaId ");
347
+            strSql.Append("select * ");
348 348
             strSql.Append(" FROM T_Branch_List ");
349 349
             if (strWhere.Trim() != "")
350 350
             {
@@ -364,7 +364,7 @@ namespace CallCenterApi.DAL
364 364
             {
365 365
                 strSql.Append(" top " + Top.ToString());
366 366
             }
367
-            strSql.Append(" F_ID,F_Code,F_Name,F_Password,F_Address,F_ConName,F_ConPhone,F_ConTel,F_ConEmail,F_Url,F_Sign,F_WebSocketUrl,F_Phone,F_State,F_CreateTime,F_CreateUser,F_IsDelete,F_DeleteUser,F_DeleteTime ");
367
+            strSql.Append(" * ");
368 368
             strSql.Append(" FROM T_Branch_List ");
369 369
             if (strWhere.Trim() != "")
370 370
             {