|
@@ -377,14 +377,12 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
|
@@ -377,14 +377,12 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { |
377
|
// 上架
|
377
|
// 上架
|
378
|
List<ProductImportTranItemBo> responseList = Lists.newArrayList();
|
378
|
List<ProductImportTranItemBo> responseList = Lists.newArrayList();
|
379
|
|
379
|
|
380
|
- List<Integer> skupIds = Lists.newArrayList();
|
|
|
381
|
-
|
|
|
382
|
// 上架的代码(和之前同)
|
380
|
// 上架的代码(和之前同)
|
383
|
List<FastDeliveryBatchOnShelfResp> shelfResps = Lists.newArrayList();
|
381
|
List<FastDeliveryBatchOnShelfResp> shelfResps = Lists.newArrayList();
|
384
|
for(FastDeliveryBatchOnShelfReq.ProductInfo productInfo : req.getProductInfos()){
|
382
|
for(FastDeliveryBatchOnShelfReq.ProductInfo productInfo : req.getProductInfos()){
|
385
|
|
383
|
|
386
|
StorageCheckResp storage = storageMap.get(getProductCodeSizeNameKey(productInfo.getProductCode(), productInfo.getSizeName()));
|
384
|
StorageCheckResp storage = storageMap.get(getProductCodeSizeNameKey(productInfo.getProductCode(), productInfo.getSizeName()));
|
387
|
- if (storage == null){
|
385
|
+ if (storage == null || storage.getStorageId() == null){
|
388
|
logger.warn("productCode {} and sizeName {}. storageId not exist.", productInfo.getProductCode(), productInfo.getSizeName());
|
386
|
logger.warn("productCode {} and sizeName {}. storageId not exist.", productInfo.getProductCode(), productInfo.getSizeName());
|
389
|
throw new UfoServiceException(403, "货号和尺寸对应的storageId不存在");
|
387
|
throw new UfoServiceException(403, "货号和尺寸对应的storageId不存在");
|
390
|
}
|
388
|
}
|