diff --git a/Tiobon.Core.Services/CommonServices.cs b/Tiobon.Core.Services/CommonServices.cs index 2e6efa5c..10639ea8 100644 --- a/Tiobon.Core.Services/CommonServices.cs +++ b/Tiobon.Core.Services/CommonServices.cs @@ -2971,8 +2971,8 @@ public partial class CommonServices : BaseServices>, ICommon string _commonType = ""; // 类别 string userID = ""; bool hasUserIDPara = false; - string SqlCompanyKey = "SELECT CompanyKey from Ghro_company where IsEnable=1"; - DataTable dtCompanyKey = await Db.Ado.GetDataTableAsync(SqlCompanyKey); + string sqlCompanyKey = "SELECT CompanyKey FROM Ghro_company WHERE IsEnable=1"; + DataTable dtCompanyKey = await Db.Ado.GetDataTableAsync(sqlCompanyKey); string tokenKey = "Tiobon"; if (dtCompanyKey.Rows.Count > 0) tokenKey = dtCompanyKey.Rows[0][0].ToString(); @@ -3252,7 +3252,7 @@ public partial class CommonServices : BaseServices>, ICommon message = ErrorMsg; } } - Dictionary data = new Dictionary + var data = new Dictionary { {"result", JObject.Parse(strJson)}, {"message",message}, @@ -3269,7 +3269,7 @@ public partial class CommonServices : BaseServices>, ICommon } catch (Exception e) { - Dictionary data = new Dictionary + var data = new Dictionary { {"result", "{}"}, {"message",e.Message}, @@ -3278,10 +3278,6 @@ public partial class CommonServices : BaseServices>, ICommon }; return data; } - - //DataSet dt = await Db.Ado.UseStoredProcedure().GetDataSetAllAsync(param.procName, dic); - - //return dt; } }