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.DomainEntity; import com.lf.server.entity.sys.AttachEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.List; /** * 父查询Mapper * @author WWW */ @Mapper @Repository public interface BaseQueryMapper { /** * 模糊搜索用户 * * @param name 用户名 * @return 实体类集合 */ public List selectUserFuzzy(String name); /** * 模糊搜索单位 * * @param name 单位名 * @return 实体类集合 */ public List selectDepFuzzy(String name); /** * 根据表名查询记录数 * * @param tab 表名 * @param field 字段 * @return */ public Integer selectTabsForCount(String tab, String field); /** * 根据表名分页查询 * * @param tab 表名 * @param field 字段 * @param filters 过滤条件 * @param limit 记录数 * @param offset 偏移量 * @return */ public List selectTabsByPage(String tab, String field, String filters, Integer limit, Integer offset); /** * 查询字段信息 * * @param ns 名称空间 * @param tab 表名 * @return 实体类集合 */ public List selectFields(String ns, String tab); /** * 查询值域信息 * * @param ns 名称空间 * @param tab 表名 * @return 实体类集合 */ public List 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 selectLocation(String wkt); /** * 查询目录类别 * * @param name * @return */ public List selectDirTypes(String name); /** * 根据表名查询附件 * * @param tab 表名 * @param gids Gid字符串 * @return 附件 */ public List selectAnnexByTab(String tab, String gids); }