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.common.system.vo.SelectTreeModel;
|
import org.jeecg.modules.base.entity.Enterprise;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @Description: 企业架构
|
* @Author: jeecg-boot
|
* @Date: 2022-11-21
|
* @Version: V1.0
|
*/
|
@Repository
|
public interface EnterpriseMapper extends BaseMapper<Enterprise> {
|
/**
|
* 获取版本树
|
* @param pid
|
* @param version
|
* @return
|
*
|
*/
|
List<SelectTreeModel> getEnterpriseVersionTree(@Param("pid") String pid,@Param("version") Integer version);
|
/**
|
* 获取所有版本号
|
* @return
|
*
|
*/
|
List<Integer> getAllVersion();
|
/**
|
* 获取孩子列表
|
* @param page
|
* @param version
|
* @param parentId
|
* @return
|
*
|
*/
|
List<Map<String,Object>> getEnterpriseListByIds(Page<Map<String,Object>> page,
|
@Param("version") Integer version,
|
@Param("parentId") String parentId);
|
/**
|
* 获取孩子列表//已经弃用
|
* @param
|
* @return
|
*
|
*/
|
List<Map<String,Object>> getEnterpriseList();
|
/**
|
* 获取孩子Id
|
* @param parentId
|
* @return
|
*
|
*/
|
List<String> getAllChildrenIdByParentId(@Param("parentId") String parentId);
|
/**
|
* 查正在生效的版本号
|
* @return
|
*
|
*/
|
List<Integer> getUsableVersion();
|
/**
|
* 查最后一次的生效版本
|
* @return
|
*
|
*/
|
List<Enterprise> getLastUsableList();
|
/**
|
* 查正在生效的版本列表
|
* @return
|
*
|
*/
|
List<Enterprise> getUsableList();
|
/**
|
* 查正在生效的版本列表
|
* @return
|
*
|
*/
|
List<String> getUsableIdList();
|
|
}
|