package com.njzscloud.dispose.wh.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.dispose.wh.pojo.entity.WarehouseEntity;
import com.njzscloud.dispose.wh.pojo.result.WarehouseResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 仓库信息
 * @author ljw
 */
@Mapper
public interface WarehouseMapper extends BaseMapper<WarehouseEntity> {

    /**
     * 分页查询
     */
    IPage<WarehouseResult> paging(Page<Object> page, @Param("ew") QueryWrapper<?> ew);

    /**
     * 详情查询
     */
    WarehouseResult detail(@Param("id") Long id);
}
