package net.lab1024.sa.admin.module.business.wms.base.area.service;


import net.lab1024.sa.admin.module.business.wms.base.area.domain.entity.AreaEntity;
import net.lab1024.sa.admin.module.business.wms.base.area.domain.form.AreaQueryForm;
import net.lab1024.sa.admin.module.business.wms.base.area.domain.form.AreaSelect;
import net.lab1024.sa.admin.module.business.wms.base.area.domain.vo.AreaVO;
import net.lab1024.sa.base.common.domain.PageResult;


import java.util.List;
import java.util.Map;


public interface AreaQueryService {

    /**
     * 分页查询
     *
     * @param queryForm 查询参数
     * @return PageResult<AreaVO>
     */
    PageResult<AreaVO> queryPage(AreaQueryForm queryForm);

    /**
     * 库区下拉查询
     *
     * @param areaSelect 入参
     * @return List<AreaEntity>
     */
    List<AreaEntity> queryArea(AreaSelect areaSelect);

    /**
     * 根据库区id集合查询库区信息
     *
     * @param areaIdList 库区id集合
     * @return Map<Long, AreaEntity>
     */
    Map<Long, AreaEntity> queryByAreaIds(List<Long> areaIdList);

    /**
     * 根据库区name集合查询库区信息
     *
     * @param areaNameList 库区name集合
     * @return Map<Long, AreaEntity>
     */
    List<AreaEntity> queryByAreaNames(List<String> areaNameList);

    /**
     * 根据库区name集合查询库区信息
     *
     * @param areaNameList 库区name集合
     * @return Map<Long, AreaEntity>
     */
    Map<String, AreaEntity> queryByAreaNamesToMap(List<String> areaNameList);

    /**
     * 根据库区名称查询库区信息
     *
     * @param areaName 库区名称
     * @return AreaEntity
     */
    AreaEntity queryByAreaName(String areaName);

}
