|
|
|
@ -231,7 +231,7 @@ func QueryGoodsList(c *gin.Context) {
|
|
|
|
|
SecondCategoryID: p.SecondCateID,
|
|
|
|
|
}).Count(&total)
|
|
|
|
|
|
|
|
|
|
dbc.DB.Limit(limit).Offset(limit*p.Page).Where("is_sale=?", p.IsSale).
|
|
|
|
|
dbc.DB.Limit(limit).Offset(limit*p.Page).
|
|
|
|
|
Where(where1).Where(where2).Where(where3).Where(where4).Where(where5).Where(where6).Where(where7).Find(&goodsList, goods.Information{
|
|
|
|
|
BrandID: p.BrandID,
|
|
|
|
|
VendorID: p.VendorID,
|
|
|
|
|