333
This commit is contained in:
parent
5564d05b03
commit
32269617ec
@ -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