|
|
@@ -667,6 +667,11 @@ public class SeekPurchaseBomServiceImpl implements SeekPurchaseBomService {
|
|
|
try {
|
|
|
List<SeekPurchaseByBatch> seekPurchaseByBatches = bom.getSeekPurchaseByBatchs();
|
|
|
if (!CollectionUtils.isEmpty(seekPurchaseByBatches)) {
|
|
|
+ for (SeekPurchaseByBatch batch : seekPurchaseByBatches) {
|
|
|
+ if (null == batch.getAmount()) {
|
|
|
+ batch.setAmount(1d);
|
|
|
+ }
|
|
|
+ }
|
|
|
seekPurchaseByBatchDao.save(seekPurchaseByBatches);
|
|
|
}
|
|
|
seekPurchaseBomDao.save(bom);
|