mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Update json 2 sql
This commit is contained in:
@@ -43,7 +43,11 @@ namespace SqlSugar
|
|||||||
orderByModel.AsName = orderByModel.AsName.Trim('[').Trim(']');
|
orderByModel.AsName = orderByModel.AsName.Trim('[').Trim(']');
|
||||||
return this.SqlTranslationLeft + orderByModel.AsName + this.SqlTranslationRight;
|
return this.SqlTranslationLeft + orderByModel.AsName + this.SqlTranslationRight;
|
||||||
}
|
}
|
||||||
return this.GetTranslationColumnName(orderByModel.AsName);
|
if (this.SqlTranslationLeft != null && orderByModel.AsName?.Contains(this.SqlTranslationLeft) == true)
|
||||||
|
{
|
||||||
|
return orderByModel.AsName;
|
||||||
|
}
|
||||||
|
return this.SqlTranslationLeft + orderByModel.AsName + this.SqlTranslationRight;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AppendFiledName(StringBuilder sql, SelectModel orderByModel)
|
private void AppendFiledName(StringBuilder sql, SelectModel orderByModel)
|
||||||
|
Reference in New Issue
Block a user