|
@@ -328,18 +328,22 @@ public class ProductServiceImpl implements ProductService {
|
|
|
for (Long id : idStrings) {
|
|
for (Long id : idStrings) {
|
|
|
refreshproduct(id);
|
|
refreshproduct(id);
|
|
|
}
|
|
}
|
|
|
|
|
+ int size1 = idStrings.size();
|
|
|
List<Product> products = productDao.findByEnUUAndMatchstatus(SystemSession.getUser().getEnterprise().getUu(),
|
|
List<Product> products = productDao.findByEnUUAndMatchstatus(SystemSession.getUser().getEnterprise().getUu(),
|
|
|
Status.SUBMITTED.value());
|
|
Status.SUBMITTED.value());
|
|
|
|
|
+ int size2 = 1;
|
|
|
if (!CollectionUtils.isEmpty(products)) {
|
|
if (!CollectionUtils.isEmpty(products)) {
|
|
|
for (Product porduct : products) {
|
|
for (Product porduct : products) {
|
|
|
if (porduct.getMatchresults().size() == 1) {
|
|
if (porduct.getMatchresults().size() == 1) {
|
|
|
for (ProductMatchResult result : porduct.getMatchresults()) {
|
|
for (ProductMatchResult result : porduct.getMatchresults()) {
|
|
|
refreshproduct(result.getId());
|
|
refreshproduct(result.getId());
|
|
|
|
|
+ size2 = size2 + 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- map.put("success", "更新成功");
|
|
|
|
|
|
|
+ int size = size1 + size2;
|
|
|
|
|
+ map.put("success", "更新成功" + size + "个");
|
|
|
return map;
|
|
return map;
|
|
|
}
|
|
}
|
|
|
|
|
|