Synchronization code

This commit is contained in:
sunkaixuan 2023-08-21 21:50:56 +08:00
parent b3e4984563
commit a3da51a167

View File

@ -246,7 +246,7 @@ namespace SqlSugar
.AS(this.ProPertyEntity.DbTableName)
.Filter(isClearFilter?null:this.ProPertyEntity.Type)
.WhereIF(!string.IsNullOrEmpty(whereSql), whereSql)
.Where($" {name}={ShorName}.{pk} ").Select(MethodName == "Any" ? "1" : " COUNT(1) ").ToSql();
.Where($" {name}={queryable.QueryBuilder.Builder.GetTranslationColumnName( ShorName)}.{pk} ").Select(MethodName == "Any" ? "1" : " COUNT(1) ").ToSql();
if (sqlObj.Value?.Any() == true)
{
foreach (var item in sqlObj.Value)