|
|
@@ -194,6 +194,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
@Override
|
|
|
public Page<V_ProductPrivate> getAllProducts(final PageInfo page, String keyword, String type) {
|
|
|
page.expression(PredicateUtils.eq("enUU", SystemSession.getUser().getEnterprise().getUu(), true));
|
|
|
+ page.expression(PredicateUtils.isNotNull("pcmpcode"));
|
|
|
+ page.expression(PredicateUtils.isNotNull("pbranden"));
|
|
|
if (StringUtils.isEmpty(type)) {
|
|
|
type = "nStandard";
|
|
|
}
|
|
|
@@ -1335,11 +1337,11 @@ public class ProductServiceImpl implements ProductService {
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Product getProductById(Long id) {
|
|
|
- if(id == null) {
|
|
|
+ public V_ProductPrivate getProductById(Long id) {
|
|
|
+ if (id == null) {
|
|
|
return null;
|
|
|
- }else {
|
|
|
- return productDao.findOne(id);
|
|
|
+ } else {
|
|
|
+ return v_productPrivateDao.findOne(id);
|
|
|
}
|
|
|
}
|
|
|
|