package org.jeecg.modules.base.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import org.apache.ibatis.annotations.Param;
|
import org.jeecg.modules.base.entity.Warehouse;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @Description: 仓库
|
* @Author: jeecg-boot
|
* @Date: 2022-11-07
|
* @Version: V1.0
|
*/
|
@Repository
|
public interface WarehouseMapper extends BaseMapper<Warehouse> {
|
/**
|
* 获取版本仓库列表
|
* @param page
|
* @param enterpriseId
|
* @param version
|
* @return
|
*/
|
List<Map<String,Object>> getWarehouseList(Page<Map<String,Object>> page,
|
@Param("version") Integer version,
|
@Param("enterpriseId") String enterpriseId);
|
/**
|
* 获取所有版本号
|
* @param
|
*
|
* @return
|
*/
|
List<Integer> getAllVersion();
|
/**
|
* 获取最后一次生效列表
|
* @return
|
*/
|
List<Warehouse> getLastUsableList();
|
/**
|
* 获取当前生效列表
|
* @return
|
*/
|
List<Warehouse> getUsableList();
|
/**
|
* 获取版本状态根据版本号
|
* @return
|
*/
|
List<String> getVersionStatusByVersion(Integer veison);
|
|
/**
|
* 通过仓库名称查询仓库信息
|
* @param name
|
* @return
|
*/
|
public Warehouse getByName(@Param("name") String name);
|
}
|