|
|
|
@ -309,27 +309,27 @@ public class WarehouseGoodsAllocationServiceImpl extends BaseServiceImpl<Warehou
|
|
|
|
|
|
|
|
|
|
public locationsnubVO getNum(Long areaId,Long shelfId){ |
|
|
|
|
locationsnubVO locationsnubVO = new locationsnubVO(); |
|
|
|
|
//查询该货区下的总货位
|
|
|
|
|
//查询该货区下的总货位(除开备货区)
|
|
|
|
|
Integer cargoNub = baseMapper.selectCount(new QueryWrapper<WarehouseGoodsAllocationEntity>().lambda() |
|
|
|
|
.eq(WarehouseGoodsAllocationEntity::getIsDeleted, 0) |
|
|
|
|
.eq(null != areaId,WarehouseGoodsAllocationEntity::getGoodsAreaId, areaId) |
|
|
|
|
.eq(null != shelfId,WarehouseGoodsAllocationEntity::getGoodsShelfId, shelfId) |
|
|
|
|
).intValue(); |
|
|
|
|
//查询所有使用货位
|
|
|
|
|
//查询所有使用货位(除开备货区)
|
|
|
|
|
Integer employNub = baseMapper.selectCount(new QueryWrapper<WarehouseGoodsAllocationEntity>().lambda() |
|
|
|
|
.eq(WarehouseGoodsAllocationEntity::getIsDeleted, 0) |
|
|
|
|
.eq(WarehouseGoodsAllocationEntity::getAllocationStatus, 2) |
|
|
|
|
.eq(null != areaId,WarehouseGoodsAllocationEntity::getGoodsAreaId, areaId) |
|
|
|
|
.eq(null != shelfId,WarehouseGoodsAllocationEntity::getGoodsShelfId, shelfId) |
|
|
|
|
).intValue(); |
|
|
|
|
//查询所有禁用
|
|
|
|
|
//查询所有禁用(除开备货区)
|
|
|
|
|
Integer disableNub = baseMapper.selectCount(new QueryWrapper<WarehouseGoodsAllocationEntity>().lambda() |
|
|
|
|
.eq(WarehouseGoodsAllocationEntity::getIsDeleted, 0) |
|
|
|
|
.eq(WarehouseGoodsAllocationEntity::getEnableStatus, 2) |
|
|
|
|
.eq(null != areaId,WarehouseGoodsAllocationEntity::getGoodsAreaId, areaId) |
|
|
|
|
.eq(null != shelfId,WarehouseGoodsAllocationEntity::getGoodsShelfId, shelfId) |
|
|
|
|
).intValue(); |
|
|
|
|
//查询可用货位
|
|
|
|
|
//查询可用货位(除开备货区)
|
|
|
|
|
Integer unusedNub = baseMapper.selectCount(new QueryWrapper<WarehouseGoodsAllocationEntity>().lambda() |
|
|
|
|
.eq(WarehouseGoodsAllocationEntity::getIsDeleted, 0) |
|
|
|
|
.eq(WarehouseGoodsAllocationEntity::getEnableStatus, 1) |
|
|
|
|