|
|
@@ -656,6 +656,11 @@ public class SeekPurchaseBomServiceImpl implements SeekPurchaseBomService {
|
|
|
@Override
|
|
|
public ModelMap editBom(SeekPurchaseBom bom) {
|
|
|
ModelMap map = new ModelMap();
|
|
|
+ if (null == bom || StringUtils.isEmpty(bom.getName())) {
|
|
|
+ map.put("success", false);
|
|
|
+ map.put("message", "未传入有效Bom信息");
|
|
|
+ return map;
|
|
|
+ }
|
|
|
try {
|
|
|
List<SeekPurchaseByBatch> seekPurchaseByBatches = bom.getSeekPurchaseByBatchs();
|
|
|
if (!CollectionUtils.isEmpty(seekPurchaseByBatches)) {
|