管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-03 9bce48a9f30f7d80c43f43f46d40df20fcb00e15
src/main/java/com/lf/server/mapper/all/BaseQueryMapper.java
@@ -1,8 +1,10 @@
package com.lf.server.mapper.all;
import com.lf.server.entity.ctrl.IdNameEntity;
import com.lf.server.entity.ctrl.KeyValueEntity;
import com.lf.server.entity.ctrl.TabEntity;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.DirEntity;
import com.lf.server.entity.data.DomainEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -40,6 +42,24 @@
    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  名称空间
@@ -56,4 +76,54 @@
     * @return 实体类集合
     */
    public List<DomainEntity> selectDomains(String ns, String tab);
    /**
     * 查询路网
     *
     * @param x1 X1
     * @param y1 Y1
     * @param x2 X2
     * @param y2 Y2
     * @return 多线
     */
    public String selectRoute(double x1, double y1, double x2, double y2);
    /**
     * 查询位置
     *
     * @param wkt WKT字符串
     * @return 位置
     */
    public List<KeyValueEntity> selectLocation(String wkt);
    /**
     * 查询基础地理类别
     *
     * @return
     */
    public List<KeyValueEntity> selectBaseType();
    /**
     * 查询业务类别
     *
     * @return
     */
    public List<KeyValueEntity> selectBusinessType();
    /**
     * 查询项目
     *
     * @return
     */
    public List<KeyValueEntity> selectProject();
    /**
     * 查询字典表并统计记录
     *
     * @param name
     * @param dirs
     * @param depid
     * @return
     */
    public List<DictEntity> selectTabCount(String name, String dirs, Integer depid);
}