Update nav query

This commit is contained in:
sunkaixuan
2022-09-18 14:46:27 +08:00
parent 35dc07d4ad
commit 2c37a364bb

View File

@@ -529,11 +529,14 @@ namespace SqlSugar
{
//var x=method.Arguments[1];
var conditionals = ExpressionTool.GetExpressionValue(method.Arguments[1]) as List<IConditionalModel>;
if (conditionals.Count > 0)
{
var whereObj = queryable.QueryBuilder.Builder.ConditionalModelToSql(conditionals);
where.Add(whereObj.Key);
if (whereObj.Value != null)
result.Parameters.AddRange(whereObj.Value);
}
}
else
{
CheckHasRootShortName(method.Arguments[0], method.Arguments[1]);