|
@@ -41,7 +41,7 @@ func (s *productService) GetList(req *model.ProductSearchReq) (total int, produc
|
|
|
Dao = Dao.Where("prod_class = ?", req.ProdClass)
|
|
Dao = Dao.Where("prod_class = ?", req.ProdClass)
|
|
|
}
|
|
}
|
|
|
if req.OnlyHardware {
|
|
if req.OnlyHardware {
|
|
|
- Dao = Dao.Where("prod_class in (40,50,60)")
|
|
|
|
|
|
|
+ Dao = Dao.Where("prod_class in (40,50,60,90)")
|
|
|
}
|
|
}
|
|
|
if req.OnlySoftware {
|
|
if req.OnlySoftware {
|
|
|
Dao = Dao.Where("prod_class in (10,20,30)")
|
|
Dao = Dao.Where("prod_class in (10,20,30)")
|