LibGeoLocationMapper.java
1.63 KB
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
package com.laowu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.laowu.model.LibGeoLocationDO;
import com.laowu.vo.geo.CountyCountsVO;
import com.laowu.vo.geo.GeoVO;
import com.laowu.vo.geo.TownCountsVO;
import com.laowu.vo.geo.VillageCountsVO;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* 地理位置字典表 Mapper 接口
* </p>
*
* @author Tuyp
* @since 2023-03-21
*/
@Repository
public interface LibGeoLocationMapper extends BaseMapper<LibGeoLocationDO> {
/**
* 查所有的省
*/
List<String> provinces();
/**
* 通过省去查市
*/
List<String> cities(String province);
/**
* 通过省市去查县
*/
List<String> county(String province,String city);
/**
* 通过省市县去查镇
*/
List<String> towns(String province,String city,String county);
/**
* 通过省市县镇去查村
*/
List<String> villages(String province,String city,String county,String town);
/**
* 省 市 县 镇 个数(村)
*/
IPage<GeoVO> geo(IPage iPage, String province, String city, String county, String town);
/**
* 去重去查
*/
List<String> localVillages(LibGeoLocationDO libGeoLocationDO);
/**
* 县+人数
*/
CountyCountsVO countyCounts(Long workStationId);
/**
* 镇+人数
*/
List<TownCountsVO> townCounts(Long workStationId, String town);
/**
* 村+人数
*/
List<VillageCountsVO> villageCounts(Long workStationId,String town, String village);
}