月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-08-14 e002c67732b571f0b20cca8321ca8ee1ddba2e05
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.moon.server.mapper.all;
 
import com.moon.server.entity.ctrl.IdNameEntity;
import com.moon.server.entity.ctrl.KeyValueEntity;
import com.moon.server.entity.ctrl.TabEntity;
import com.moon.server.entity.data.DictEntity;
import com.moon.server.entity.data.DomainEntity;
import com.moon.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<IdNameEntity> selectUserFuzzy(String name);
 
    /**
     * 模糊搜索单位
     *
     * @param name 单位名
     * @return 实体类集合
     */
    public List<IdNameEntity> selectDepFuzzy(String name);
 
    /**
     * 根据表名查询记录数
     *
     * @param tab         表名
     * @param typesFilter 类别
     * @param field       字段
     * @return
     */
    public Integer selectTabsForCount(String tab, String typesFilter, String field);
 
    /**
     * 根据表名分页查询
     *
     * @param tab         表名
     * @param typesFilter 类别
     * @param field       字段
     * @param filters     过滤条件
     * @param limit       记录数
     * @param offset      偏移量
     * @return
     */
    public List<TabEntity> selectTabsByPage(String tab, String typesFilter, String field, String filters, 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);
 
    /**
     * 查询路网
     *
     * @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);
 
    /**
     * 查询目录类别
     *
     * @param name
     * @return
     */
    public List<KeyValueEntity> selectDirTypes(String name);
 
    /**
     * 根据表名查询附件
     *
     * @param tab  表名
     * @param gids Gid字符串
     * @return 附件
     */
    public List<AttachEntity> selectAnnexByTab(String tab, String gids);
}