|
|
@@ -169,7 +169,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
|
|
|
@Override
|
|
|
public List<Product> getBrands() {
|
|
|
- String sql = "select distinct p.pr_brand brand from products p where pr_enuu = "
|
|
|
+ String sql = "select distinct p.pr_brand brand from products p where p.pr_cmpuuid is null and p.pr_enuu = "
|
|
|
+ SystemSession.getUser().getEnterprise().getUu();
|
|
|
List<Product> products = commonDao.query(sql, Product.class);
|
|
|
return products;
|
|
|
@@ -177,7 +177,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
|
|
|
@Override
|
|
|
public List<Product> getTitles() {
|
|
|
- String sql = "select distinct p.pr_title title from products p where pr_enuu = "
|
|
|
+ String sql = "select distinct p.pr_title title from products p where p.pr_cmpuuid is null and p.pr_enuu = "
|
|
|
+ SystemSession.getUser().getEnterprise().getUu();
|
|
|
List<Product> products = commonDao.query(sql, Product.class);
|
|
|
return products;
|