管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-20 320d6edb14c475850ab6e2343bc51fa0a41a8f3c
src/main/java/com/lf/server/mapper/all/BaseQueryMapper.java
@@ -5,6 +5,7 @@
import com.lf.server.entity.ctrl.TabEntity;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.DomainEntity;
import com.lf.server.entity.sys.AttachEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -34,29 +35,25 @@
    public List<IdNameEntity> selectDepFuzzy(String name);
    /**
     * 查询所有表
     *
     * @return
     */
    public List<TabEntity> selectTabs();
    /**
     * 根据表名查询记录数
     *
     * @param tab 表名
     * @return 记录数
     * @param tab   表名
     * @param field 字段
     * @return
     */
    public Integer selectTabsForCount(String tab);
    public Integer selectTabsForCount(String tab, String field);
    /**
     * 根据表名分页查询
     *
     * @param tab    表名
     * @param limit  记录数
     * @param offset 偏移量
     * @param tab     表名
     * @param field   字段
     * @param filters 过滤条件
     * @param limit   记录数
     * @param offset  偏移量
     * @return
     */
    public List<TabEntity> selectTabsByPage(String tab, Integer limit, Integer offset);
    public List<TabEntity> selectTabsByPage(String tab, String field, String filters, Integer limit, Integer offset);
    /**
     * 查询字段信息
@@ -94,4 +91,21 @@
     * @return 位置
     */
    public List<KeyValueEntity> selectLocation(String wkt);
    /**
     * 查询目录类别
     *
     * @param name
     * @return
     */
    public List<KeyValueEntity> selectDirTypes(String name);
    /**
     * 根据表名查询附件
     *
     * @param tab  表名
     * @param gids Gid字符串
     * @return 附件
     */
    public List<AttachEntity> selectAnnexByTab(String tab, String gids);
}