|
@@ -97,13 +97,13 @@ func (repository OrderGoodRepository) Find(queryOption domain.OrderGoodFindQuery |
|
@@ -97,13 +97,13 @@ func (repository OrderGoodRepository) Find(queryOption domain.OrderGoodFindQuery |
97
|
if queryOption.Limit > 0 {
|
97
|
if queryOption.Limit > 0 {
|
98
|
query = query.Limit(queryOption.Limit)
|
98
|
query = query.Limit(queryOption.Limit)
|
99
|
} else {
|
99
|
} else {
|
100
|
- query = query.Limit(50)
|
100
|
+ query = query.Limit(100)
|
101
|
}
|
101
|
}
|
102
|
var (
|
102
|
var (
|
103
|
err error
|
103
|
err error
|
104
|
orderGoods = make([]domain.OrderGood, 0)
|
104
|
orderGoods = make([]domain.OrderGood, 0)
|
105
|
)
|
105
|
)
|
106
|
- query = query.Order("order_good.id DESC")
|
106
|
+ query = query.Order("order_good.id")
|
107
|
count, err := query.SelectAndCount()
|
107
|
count, err := query.SelectAndCount()
|
108
|
if err != nil {
|
108
|
if err != nil {
|
109
|
return orderGoods, 0, err
|
109
|
return orderGoods, 0, err
|