新增修改商品状态(上/下架)

This commit is contained in:
2023-12-22 16:22:01 +08:00
parent 2eb9a7bbe2
commit fc9f6588cc
5 changed files with 95 additions and 1 deletions
+5
View File
@@ -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)