Authored by tanling

极速发货

@@ -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 }
@@ -47,7 +47,7 @@ public class FastDeliveryProxyService { @@ -47,7 +47,7 @@ public class FastDeliveryProxyService {
47 47
48 48
49 public boolean isOnToThird(){ 49 public boolean isOnToThird(){
50 - return configReader.getBoolean("ufo.fast.delivery.toThired", true); 50 + return configReader.getBoolean("ufo.fast.delivery.toThird", true);
51 } 51 }
52 52
53 /** 53 /**