新增了麻精药品列表,增加了系统商品的搜索条件

This commit is contained in:
2024-06-03 10:38:50 +08:00
parent cbe044f1ef
commit 62473de7fc
4 changed files with 27 additions and 0 deletions
+5
View File
@@ -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)