|
|
@ -206,6 +206,11 @@ public class WarehouseGoodsAllocationController extends BladeController { |
|
|
|
if (upShelfOrderList.size() == 0 || Objects.isNull(allocationId)) { |
|
|
|
if (upShelfOrderList.size() == 0 || Objects.isNull(allocationId)) { |
|
|
|
return R.fail("参数不全"); |
|
|
|
return R.fail("参数不全"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//查询是否为备货区
|
|
|
|
|
|
|
|
Boolean b = warehouseGoodsAllocationService.selectIsStocking(allocationId); |
|
|
|
|
|
|
|
if (b){ |
|
|
|
|
|
|
|
return R.fail("备货区不可上架"); |
|
|
|
|
|
|
|
} |
|
|
|
//当前登录人选择的仓库
|
|
|
|
//当前登录人选择的仓库
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
@ -230,7 +235,10 @@ public class WarehouseGoodsAllocationController extends BladeController { |
|
|
|
//取出服务号
|
|
|
|
//取出服务号
|
|
|
|
List<UpShelfOrderDTO> upShelfOrderList = updownTypeDTO.getUpShelfOrderList(); |
|
|
|
List<UpShelfOrderDTO> upShelfOrderList = updownTypeDTO.getUpShelfOrderList(); |
|
|
|
Long allocationId = updownTypeDTO.getAllocationId(); |
|
|
|
Long allocationId = updownTypeDTO.getAllocationId(); |
|
|
|
|
|
|
|
Boolean b = warehouseGoodsAllocationService.selectIsStocking(allocationId); |
|
|
|
|
|
|
|
if (b){ |
|
|
|
|
|
|
|
return R.fail("备货区不可上架"); |
|
|
|
|
|
|
|
} |
|
|
|
//当前登录人选择的仓库
|
|
|
|
//当前登录人选择的仓库
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
@ -265,6 +273,10 @@ public class WarehouseGoodsAllocationController extends BladeController { |
|
|
|
if (upShelfPackageList.size() == 0 || Objects.isNull(allocationId)) { |
|
|
|
if (upShelfPackageList.size() == 0 || Objects.isNull(allocationId)) { |
|
|
|
return R.fail("参数不全"); |
|
|
|
return R.fail("参数不全"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Boolean b = warehouseGoodsAllocationService.selectIsStocking(allocationId); |
|
|
|
|
|
|
|
if (b){ |
|
|
|
|
|
|
|
return R.fail("备货区不可上架"); |
|
|
|
|
|
|
|
} |
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
return R.fail("仓库信息不能为空"); |
|
|
|
return R.fail("仓库信息不能为空"); |
|
|
@ -293,11 +305,15 @@ public class WarehouseGoodsAllocationController extends BladeController { |
|
|
|
if (Objects.isNull(myCurrentWarehouse)) { |
|
|
|
if (Objects.isNull(myCurrentWarehouse)) { |
|
|
|
return R.fail("仓库信息不能为空"); |
|
|
|
return R.fail("仓库信息不能为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Boolean b = warehouseGoodsAllocationService.selectIsStocking(allocationId); |
|
|
|
|
|
|
|
if (b){ |
|
|
|
|
|
|
|
return R.fail("备货区不可上架"); |
|
|
|
|
|
|
|
} |
|
|
|
//上架托盘
|
|
|
|
//上架托盘
|
|
|
|
R r = warehouseUpdownTypeService.upShelfTray(trayCode, allocationId,myCurrentWarehouse.getId()); |
|
|
|
R r = warehouseUpdownTypeService.upShelfTray(trayCode, allocationId,myCurrentWarehouse.getId()); |
|
|
|
// if (r.getCode() == 200) {
|
|
|
|
if (r.getCode() == 200) { |
|
|
|
// warehouseGoodsAllocationService.updateAllocationCache(allocationId.toString());
|
|
|
|
warehouseGoodsAllocationService.updateAllocationCache(allocationId.toString()); |
|
|
|
// }
|
|
|
|
} |
|
|
|
return r; |
|
|
|
return r; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -317,6 +333,10 @@ public class WarehouseGoodsAllocationController extends BladeController { |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
return R.fail("仓库信息不能为空"); |
|
|
|
return R.fail("仓库信息不能为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Boolean b = warehouseGoodsAllocationService.selectIsStocking(allocationId); |
|
|
|
|
|
|
|
if (b){ |
|
|
|
|
|
|
|
return R.fail("备货区不可上架"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//查询该库位的货物信息
|
|
|
|
//查询该库位的货物信息
|
|
|
|
R r = warehouseUpdownTypeService.upShelfStockList(upShelfStockList, allocationId,myCurrentWarehouse.getId()); |
|
|
|
R r = warehouseUpdownTypeService.upShelfStockList(upShelfStockList, allocationId,myCurrentWarehouse.getId()); |
|
|
@ -343,6 +363,10 @@ public class WarehouseGoodsAllocationController extends BladeController { |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
if(Objects.isNull(myCurrentWarehouse)){ |
|
|
|
return R.fail("仓库信息为空"); |
|
|
|
return R.fail("仓库信息为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Boolean b = warehouseGoodsAllocationService.selectIsStocking(allocationId); |
|
|
|
|
|
|
|
if (b){ |
|
|
|
|
|
|
|
return R.fail("备货区不可上架"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//查询该库位的货物信息
|
|
|
|
//查询该库位的货物信息
|
|
|
|
R r = warehouseUpdownTypeService.upShelfZeroOrder(upShelfZeroOrderList, allocationId,myCurrentWarehouse.getId()); |
|
|
|
R r = warehouseUpdownTypeService.upShelfZeroOrder(upShelfZeroOrderList, allocationId,myCurrentWarehouse.getId()); |
|
|
|