新增修改商品状态(上/下架)
This commit is contained in:
@@ -105,6 +105,11 @@ func (r *ProductDao) GetProductPageSearch(req requests.GetProductPage, page, pag
|
||||
query = query.Where("product_type = ?", req.ProductType)
|
||||
}
|
||||
|
||||
// 商品状态
|
||||
if req.ProductStatus != nil {
|
||||
query = query.Where("product_status = ?", req.ProductStatus)
|
||||
}
|
||||
|
||||
// 平台商品id
|
||||
if req.ProductPlatformId != "" {
|
||||
query = query.Where("product_platform_id = ?", req.ProductPlatformId)
|
||||
|
||||
Reference in New Issue
Block a user