Update oracle json 2 sql

This commit is contained in:
sunkaixuan
2023-06-11 00:31:18 +08:00
parent 4e87995e99
commit a2ba853415

View File

@@ -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);
}