|
@@ -93,7 +93,7 @@ public class ProcessLocationTest {
|
|
|
BigDecimal quantity = StringUtils.isNotBlank(count) ? new BigDecimal(count) : null;
|
|
|
//所需的sku,库位号locationNo以及数量即可操作
|
|
|
String locationNo = handleLocationNo(locLotModel.getLocationNo());
|
|
|
- redressInventory(locationNo, locLotModel.getBindSku(), locLotModel.getPalletNo(), quantity, skuTypeMapping);
|
|
|
+ redressInventory(locationNo, locLotModel.getBindSku(), quantity, locLotModel.getPalletNo(), skuTypeMapping);
|
|
|
}catch (RuntimeException ex){
|
|
|
log.warn("ex is {}", ex);
|
|
|
errorLocLotList.add(locLotModel);
|
|
@@ -104,10 +104,6 @@ public class ProcessLocationTest {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 重置一个库的库位库存信息
|
|
|
* @param locationNo 库位号
|
|
@@ -116,13 +112,14 @@ public class ProcessLocationTest {
|
|
|
* @param quantity
|
|
|
* @param skuTypeMapping
|
|
|
*/
|
|
|
- private void redressInventory(String locationNo, String bindSku, String palletNo, BigDecimal quantity, Map<String, String> skuTypeMapping) {
|
|
|
+ private void redressInventory(String locationNo, String bindSku, BigDecimal quantity, String palletNo, Map<String, String> skuTypeMapping) {
|
|
|
//1.通过库位号获得库位的ID
|
|
|
BaseLocationInfo baseLocationInfo = baseLocationInfoService.selectBaseLocationInfoByIdOrNo(locationNo, WAREHOUSE_ID);
|
|
|
if (ObjectUtil.isNull(baseLocationInfo)) return;
|
|
|
if(StringUtils.isBlank(bindSku) && ObjectUtil.isNotNull(quantity)) return;
|
|
|
|
|
|
|
|
|
+
|
|
|
//2.1 如果当前库位是空的,或者库位数量是空的,则删除inv_lot_loc_id中的库存数据并重置库位数据
|
|
|
if((ObjectUtil.isNull(quantity) || CompareUtil.compare(quantity, BigDecimal.ZERO)<=0)){
|
|
|
//生成新的批次记录
|