Synchronization code

This commit is contained in:
sunkaixuan
2022-10-20 09:34:40 +08:00
parent 7c84f68e4b
commit fb3a9ea018
2 changed files with 9 additions and 2 deletions

View File

@@ -1035,7 +1035,14 @@ namespace SqlSugar
List<IConditionalModel> conditionalModels = (List<IConditionalModel>) model.Args[1].MemberValue;
var sqlObj = this.Context.SugarContext.Context.Queryable<object>().SqlBuilder.ConditionalModelToSql(conditionalModels, 0);
model.Args[1].MemberName = sqlObj.Key;
this.Context.Parameters.AddRange(sqlObj.Value);
if (sqlObj.Value != null)
{
this.Context.Parameters.AddRange(sqlObj.Value);
}
else
{
return " 1=1 ";
}
}
return this.Context.DbMehtods.Exists(model);

View File

@@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.3.27</version>
<version>5.1.3.28-preview04</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>