package com.shkj.wms.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.shkj.wms.bo.BaseLocationQueryListBo; import com.shkj.wms.domain.BaseLocation; import com.shkj.wms.bo.BaseLocationQueryBo; import com.shkj.wms.bo.BaseLocationQueryPageBo; import com.shkj.wms.vo.BaseLocationRecommendVo; import com.shkj.wms.vo.BaseLocationVo; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 货位资料Mapper接口 * * @author lch * @date 2022-04-23 */ public interface BaseLocationMapper extends BaseMapper { // 获取推荐的货位 List queryLocations(BaseLocationQueryBo bo); /** * 空的货位 * * @param ids * @param locationName * @param abcClassify * @return */ List getLocationByAreaIds(@Param("ids") List ids, @Param("locationName") String locationName, @Param("abcClassify") String abcClassify); /** * 查找空货位 * * @param locationId * @param areaId * @param storageId * @return */ List getNearestEmptyLocationById(@Param("locationId") Long locationId, @Param("areaId") Long areaId, @Param("storageId") String storageId); /** * 根据id查询 * * @param ids * @return */ List queryLocationsByIds(@Param("ids") List ids); List queryLocationsPackageByIds(@Param("ids") List ids, @Param("goodId") Long goodId); /** * 查询货位资料列表(货位资料维护) * @param bo * @return */ List queryBaseLocationList(BaseLocationQueryPageBo bo); BaseLocationVo queryLocationById(@Param("locationId") Long locationId); BaseLocationVo queryLocationByCode(@Param("locationCode") String locationCode, @Param("branchId") Long branchId); BaseLocationVo queryLocationByName(@Param("locationName") String locationName, @Param("branchId") Long branchId); List getLocationByGoodsIdStorageId(@Param("goodId") Long goodId, @Param("storageId") String storageId, @Param("branchId") Long branchId); /** * 根据派生获取货位信息 * @param bo * @return */ List queryBaseLocationListByDerive( BaseLocationQueryListBo bo); List queryBaseLocationListByDerive1( BaseLocationQueryListBo bo); List getLocationByAreaId( Long areaId); /** * 获取 异常、冲孔出库货位数据 * @author Comair * @date 2023/8/12 19:59 * @param areaId * @return java.util.List */ List getOutLocationByAreaId( Long areaId); /** *根据库位id查询巷道信息 * @param locationId * @return */ List gettunnel(String locationId); List getEmptyContainerFromLocation(Long areaId); List queryBaseLocationListByGoods( BaseLocationQueryListBo bo); }