管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-01-12 c509bd8047cfd582c59bba66d148b236e45d038d
src/main/java/com/lf/server/mapper/all/BaseQueryMapper.java
@@ -2,6 +2,8 @@
import com.lf.server.entity.ctrl.IdNameEntity;
import com.lf.server.entity.ctrl.TabEntity;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.DomainEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -36,4 +38,40 @@
     * @return
     */
    public List<TabEntity> selectTabs();
    /**
     * 根据表名查询记录数
     *
     * @param tab 表名
     * @return 记录数
     */
    public Integer selectTabsForCount(String tab);
    /**
     * 根据表名分页查询
     *
     * @param tab    表名
     * @param limit  记录数
     * @param offset 偏移量
     * @return
     */
    public List<TabEntity> selectTabsByPage(String tab, Integer limit, Integer offset);
    /**
     * 查询字段信息
     *
     * @param ns  名称空间
     * @param tab 表名
     * @return 实体类集合
     */
    public List<DictEntity> selectFields(String ns, String tab);
    /**
     * 查询值域信息
     *
     * @param ns  名称空间
     * @param tab 表名
     * @return 实体类集合
     */
    public List<DomainEntity> selectDomains(String ns, String tab);
}