|
@@ -1861,6 +1861,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
List<ProductPrivate> productPrivates = new ArrayList<>();
|
|
List<ProductPrivate> productPrivates = new ArrayList<>();
|
|
|
Set<Long> prIds = new HashSet<>();
|
|
Set<Long> prIds = new HashSet<>();
|
|
|
Set<Long> reIds = new HashSet<>();
|
|
Set<Long> reIds = new HashSet<>();
|
|
|
|
|
+ Set<ReleaseProductByBatch> updateProducts = new HashSet<>();
|
|
|
Map<String, List<PCBPropertyValue>> propertyMap = new HashedMap();
|
|
Map<String, List<PCBPropertyValue>> propertyMap = new HashedMap();
|
|
|
|
|
|
|
|
Long sizeProId = null;
|
|
Long sizeProId = null;
|
|
@@ -1895,11 +1896,13 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
prIds.add(releaseProductByBatch.getProductid());
|
|
prIds.add(releaseProductByBatch.getProductid());
|
|
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getSpec()) || (releaseProductByBatch.getMinPackage() != null) || org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getPackaging()) || (releaseProductByBatch.getCostPrice() != null)) {
|
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getSpec()) || (releaseProductByBatch.getMinPackage() != null) || org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getPackaging()) || (releaseProductByBatch.getCostPrice() != null)) {
|
|
|
reIds.add(releaseProductByBatch.getId());
|
|
reIds.add(releaseProductByBatch.getId());
|
|
|
|
|
+ updateProducts.add(releaseProductByBatch);
|
|
|
} else {
|
|
} else {
|
|
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getKindName())) {
|
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getKindName())) {
|
|
|
//如果是非标,则可以填充,或者覆盖
|
|
//如果是非标,则可以填充,或者覆盖
|
|
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getComponentUuId())) {
|
|
if (org.apache.commons.lang.StringUtils.isNotEmpty(releaseProductByBatch.getComponentUuId())) {
|
|
|
reIds.add(releaseProductByBatch.getId());
|
|
reIds.add(releaseProductByBatch.getId());
|
|
|
|
|
+ updateProducts.add(releaseProductByBatch);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|