move dir and add ut for ParseOrder

This commit is contained in:
jianzhiyao
2020-10-27 19:32:56 +08:00
parent beedfa1b53
commit 6d828e7939
10 changed files with 179 additions and 137 deletions

View File

@@ -58,7 +58,7 @@ import (
"database/sql"
"errors"
"fmt"
"github.com/astaxie/beego/client/orm/structs/clauses"
order2 "github.com/astaxie/beego/client/orm/structs/clauses/order"
"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 = clauses.ParseOrder(order)
qs.orders = order2.ParseOrder(order)
}
find := ind.FieldByIndex(fi.fieldIndex)