Browse Source

Synchronization code

pull/33/head
sunkaixuan 1 year ago
parent
commit
1719536b78
  1. 5
      Src/Asp.NetCore2/SqlSugar/Json2Sql/ModelToSql/SelectModelToSql.cs

5
Src/Asp.NetCore2/SqlSugar/Json2Sql/ModelToSql/SelectModelToSql.cs

@ -38,6 +38,11 @@ namespace SqlSugar
{
return orderByModel.AsName.Replace(UtilConstants.ReplaceKey, string.Empty);
}
if (orderByModel.AsName?.Contains("[")==true)
{
orderByModel.AsName = orderByModel.AsName.Trim('[').Trim(']');
return this.SqlTranslationLeft + orderByModel.AsName + this.SqlTranslationRight;
}
return this.GetTranslationColumnName(orderByModel.AsName);
}

Loading…
Cancel
Save