|
@@ -126,7 +126,8 @@ namespace TEAMModelOS.SDK.DI.AzureCosmos.Inner
|
|
|
}
|
|
|
public static AzureCosmosQuery GetSQL(Dictionary<string, object> dict, StringBuilder sql, string pk = null)
|
|
|
{
|
|
|
- if (dict != null)
|
|
|
+ AzureCosmosQuery cosmosDbQuery;
|
|
|
+ if (dict != null && dict.Count > 0)
|
|
|
{
|
|
|
if (!DictIsNotNULL(dict))
|
|
|
{
|
|
@@ -324,14 +325,18 @@ namespace TEAMModelOS.SDK.DI.AzureCosmos.Inner
|
|
|
parmeters = GetParmeter(forGetParmeter, parmeters, offsetNum, limitNum);
|
|
|
|
|
|
|
|
|
- AzureCosmosQuery cosmosDbQuery = new AzureCosmosQuery
|
|
|
+ cosmosDbQuery = new AzureCosmosQuery
|
|
|
{
|
|
|
QueryText = sql.ToString(),
|
|
|
Parameters = parmeters
|
|
|
};
|
|
|
return cosmosDbQuery;
|
|
|
}
|
|
|
- return null;
|
|
|
+ cosmosDbQuery = new AzureCosmosQuery
|
|
|
+ {
|
|
|
+ QueryText = sql.ToString()
|
|
|
+ };
|
|
|
+ return cosmosDbQuery;
|
|
|
}
|
|
|
|
|
|
private static void GetPageNum(Dictionary<string, object> dict, ref int offsetNum, ref int limitNum, ref bool pageBool)
|