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