1. Inside Zhou
  2. Inside.Util

Commits

Inside Zhou  committed b94a1e2

自动判断是否从缓存取数据的Get方法原意是想访问重载过的Get和Get_Cache,此处直接进入进入GetRawData是错误的。

  • Participants
  • Parent commits db52cb6
  • Branches default

Comments (0)

Files changed (2)

File Inside.Util/Properties/AssemblyInfo.cs

View file
  • Ignore whitespace
  * 第四位数字表示,bugfix,细节优化这一级别。
  * 版本号互不相关,不再重置为0。
  */
-[assembly: AssemblyVersion("1.9.16.19")]
+[assembly: AssemblyVersion("1.9.16.20")]

File Inside.Util/Sql/OracleDataHelper.cs

View file
  • Ignore whitespace
 
 		public virtual QueryPlan Get(string cacheOID, SqlHelper sql = null, int? stateNum = (int)RowState.可读) {
 			sql = sql ?? this.SqlHelper;
-			var query = this.GetRawData(cacheOID, sql);
-			if(null != stateNum) {
-				query.Filter("state", ConditionType.Equal, stateNum, BitANDFormat(stateNum));
+
+			if(string.IsNullOrEmpty(cacheOID)) {
+				return this.Get(sql);
 			}
-			return query;
+			else {
+				return this.Get_Cache(cacheOID, sql);
+			}
 		}
 
 		public virtual QueryPlan Get_Cache(string cacheOID, SqlHelper sql = null, int? stateNum = (int)RowState.可读) {