|
|
@@ -1869,6 +1869,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
}
|
|
|
long l2 = System.currentTimeMillis();
|
|
|
System.err.println("打印l2 ----------- l1" + (l2 - l1));
|
|
|
+ List<ReleaseProductByBatch> reList = new ArrayList<>();
|
|
|
if (productsfromRelease.size() != 0) {
|
|
|
productService.saveByJdbcTemplate(productsfromRelease);
|
|
|
List<Product> productes = productService.findProductsByProdNums(proNums);
|
|
|
@@ -1884,6 +1885,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
for (ReleaseProductByBatch releaseProductByBatch : productsfromRelease) {
|
|
|
if (StringUtilB2C.equals(releaseProductByBatch.getProductNum(), producte.getProdNum())) {
|
|
|
releaseProductByBatch.setProductid(producte.getId());
|
|
|
+ reList.add(releaseProductByBatch);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1891,8 +1893,8 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
|
|
|
long l3 = System.currentTimeMillis();
|
|
|
System.err.println("打印l3 ----------- l2" + (l3 - l2));
|
|
|
- if (CollectionUtils.isNotEmpty(productsfromRelease)) {
|
|
|
- udpatePridAndRrodnum(productsfromRelease);
|
|
|
+ if (CollectionUtils.isNotEmpty(reList)) {
|
|
|
+ udpatePridAndRrodnum(reList);
|
|
|
}
|
|
|
long l4 = System.currentTimeMillis();
|
|
|
System.err.println("打印l4 ----------- l3" + (l4 - l3));
|