新增了麻精药品列表,增加了系统商品的搜索条件
This commit is contained in:
@@ -107,6 +107,11 @@ func (r *ProductDao) GetProductPageSearch(req requests.GetProductPage, page, pag
|
||||
query = query.Where("product_type = ?", req.ProductType)
|
||||
}
|
||||
|
||||
// 是否麻精药品
|
||||
if req.IsMajing != nil {
|
||||
query = query.Where("is_majing = ?", req.IsMajing)
|
||||
}
|
||||
|
||||
// 商品状态
|
||||
if req.ProductStatus != nil {
|
||||
query = query.Where("product_status = ?", req.ProductStatus)
|
||||
|
||||
Reference in New Issue
Block a user