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();
|
|
}
|