|
|
@@ -279,10 +279,10 @@ public class ProductServiceImpl implements ProductService {
|
|
|
}
|
|
|
}
|
|
|
userUU = SystemSession.getUser().getUserUU();
|
|
|
- List<ProductPerson> ppList = productPersonDao.findByUserUU(userUU);
|
|
|
+ List<Long> productIds = productPersonDao.findIdByEnuuAndUserUU(enuu, userUU);
|
|
|
for (V_ProductPrivate v_productPrivate : productList) {
|
|
|
- for (ProductPerson productPerson : ppList) {
|
|
|
- if (v_productPrivate.getId().equals(productPerson.getProductId())) {
|
|
|
+ for (Long productId : productIds) {
|
|
|
+ if (v_productPrivate.getId().equals(productId)) {
|
|
|
v_productPrivate.setAddProductPerson(true);
|
|
|
}
|
|
|
}
|