333
This commit is contained in:
parent
4faa16a7cc
commit
be6f077f1b
@ -340,6 +340,10 @@ func (r *ProductDao) GetProductListSearch(req requests.GetProductList) (m []*mod
|
|||||||
|
|
||||||
query = query.Order("gdxz_product.created_at desc")
|
query = query.Order("gdxz_product.created_at desc")
|
||||||
|
|
||||||
|
if req.Limit == 0 {
|
||||||
|
req.Limit = 20
|
||||||
|
}
|
||||||
|
|
||||||
err = query.Limit(req.Limit).Find(&m).Error
|
err = query.Limit(req.Limit).Find(&m).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user