yanghb
2024-12-17 1287337fd0b0c156ec79712f9a600ebeffefe3a6
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
package com.zzg.system.service.system;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzg.system.domain.SysCity;
 
import java.util.List;
 
public interface ISysCityService extends IService<SysCity> {
 
    List<SysCity> getListTree();
 
    /**
     * 通过id得到该行政级别的所有级别路径
     * 只拿到行政级别
     *
     * @return
     */
    SysCity getUpwardById(String id);
 
    /**
     * 通过id得到该行政级别的指定级别的ID,默认一级
     *
     * @param id
     * @param level
     * @return
     */
    SysCity getUpDataById(String id, Integer level);
 
    List<SysCity> getTowns();
 
 
    List<SysCity> getNextTree(String pid);
 
    List<SysCity> selectByTownIds(List<String> townIds);
 
    /**
     * 根据组ID,得到整个链
     *
     * @param groupsId
     * @return
     */
    SysCity getLinksByGroup(String groupsId);
 
    /**
     * 通过名称查询乡镇或村组
     *
     * @param name 名称
     * @return 列表
     */
    public List<SysCity> getByTownName(String name);
 
    /**
     * 根据登录用户获取所属乡镇信息
     *
     * @return
     */
    public SysCity getByLoginUser();
 
}