This commit is contained in:
jianzhiyao
2020-10-29 19:05:32 +08:00
parent 508105d32a
commit f8fb50999b
9 changed files with 38 additions and 39 deletions

View File

@@ -58,7 +58,7 @@ import (
"database/sql"
"errors"
"fmt"
order2 "github.com/astaxie/beego/client/orm/structs/clauses/order"
"github.com/astaxie/beego/client/orm/clauses/order_clause"
"os"
"reflect"
"time"
@@ -352,7 +352,7 @@ func (o *ormBase) LoadRelatedWithCtx(ctx context.Context, md interface{}, name s
qs.relDepth = relDepth
if len(order) > 0 {
qs.orders = order2.ParseOrder(order)
qs.orders = order_clause.ParseOrder(order)
}
find := ind.FieldByIndex(fi.fieldIndex)