package com.shkj.wms.mapper;

import com.shkj.wms.bo.BaseContainerQueryListBo;
import com.shkj.wms.bo.BusinContainerUpkeepQueryBo;
import com.shkj.wms.domain.BaseContainer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shkj.wms.vo.BaseContainerInWWarehoseVo;
import com.shkj.wms.vo.BaseContainerVo;
import com.shkj.wms.vo.BusinContainerUpkeepVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 容器资料Mapper接口
 *
 * @author lch
 * @date 2022-04-23
 */
public interface BaseContainerMapper extends BaseMapper<BaseContainer> {

    /**
     * @param ids
     * @return
     */
    List<BaseContainer> queryNoUserContainer(@Param("ids") List<Long> ids);

    /**
     * 查看具有权限的容器资料列表
     * @param bo
     * @return
     */
    List<BaseContainerVo> queryBaseContainerList(BaseContainerQueryListBo bo);

    /**
     * 空治具在库查询
     * @param bo
     * @return
     */
    List<BaseContainerInWWarehoseVo> queryContainerInWWarehoseList(BaseContainerQueryListBo bo);

    /**
     * 空治具是否需要保养
     * @param bo
     * @return
     */
    BusinContainerUpkeepVo getContainerUpkeepDay(BusinContainerUpkeepQueryBo bo);
}
