|
|
@@ -86,13 +86,14 @@ public class ProductPrivateServiceImpl implements ProductPrivateService {
|
|
|
List<ProductPrivate> privateList = findByPrIds(prIds);
|
|
|
Boolean isExist = false;
|
|
|
ProductPrivate productPrivate = null;
|
|
|
- int batchCount = 0;
|
|
|
+ Integer batchCount = 0;
|
|
|
Map<Long, Integer> goodsCountByProductId = goodsService.batchGetCountByProductId(prIds);
|
|
|
for (Long productId : prIds) {
|
|
|
isExist = false;
|
|
|
batchCount = 0;
|
|
|
if ((goodsCountByProductId != null) && (goodsCountByProductId.size() != 0)) {
|
|
|
batchCount = goodsCountByProductId.get(productId);
|
|
|
+ batchCount = (batchCount == null) ? 0 : batchCount;
|
|
|
}
|
|
|
for (ProductPrivate productPri : privateList) {
|
|
|
if (productPri.getPrId().longValue() == productId.longValue()) {
|