@Service @Scope(proxyMode=TARGET_CLASS) public class DistrictServiceImpl extends Object implements DistrictService
| Constructor and Description |
|---|
DistrictServiceImpl(org.springframework.context.ApplicationContext context) |
public DistrictServiceImpl(org.springframework.context.ApplicationContext context)
@Cacheable(value="DistrictCache",
keyGenerator="customKeyGenerator")
public Map<String,List<DmDistrictItem>> getAllDistrictItem(Long districtId)
districtId - public List<DmDistrictDTO> list()
DistrictServicelist in interface DistrictServicepublic List<DistrictTreeDTO> tree()
DistrictServicetree in interface DistrictServicepublic Long addDistrict(DistrictCreateDTO createDTO)
DistrictServiceaddDistrict in interface DistrictServicecreateDTO - 新增参数public void setDefaultDistrict(Boolean isDefault, Long id)
DistrictServicesetDefaultDistrict in interface DistrictServiceisDefault - 是否为默认id - 行政区域方案唯一标识public DistrictItemDTO getDefaultDistrictItem(Long districtId)
DistrictServicegetDefaultDistrictItem in interface DistrictServicedistrictId - 区域方案唯一标识public void setDefaultDistrictItem(Long districtId, Long id)
DistrictServicesetDefaultDistrictItem in interface DistrictServicedistrictId - 区域方案唯一标识id - 区域单元唯一标识public void updateDistrict(DistrictEditDTO editDTO)
DistrictServiceupdateDistrict in interface DistrictServiceeditDTO - 编辑参数@Transactional(rollbackFor=java.lang.Exception.class) public void deleteDistrict(Long id)
DistrictServicedeleteDistrict in interface DistrictServiceid - 行政区域方案唯一标识public void addDistrictLevel(DistrictLevelCreateDTO createDTO)
DistrictServiceaddDistrictLevel in interface DistrictServicecreateDTO - 添加参数public void updateDistrictLevel(DistrictLevelEditDTO editDTO)
DistrictServiceupdateDistrictLevel in interface DistrictServiceeditDTO - 编辑参数public void deleteDistrictLevel(Long districtId, Short index)
DistrictServicedeleteDistrictLevel in interface DistrictServicedistrictId - 行政区域方案唯一标识index - 级别索引public List<DistrictLevelDTO> getDistrictLevels(Long districtId)
DistrictServicegetDistrictLevels in interface DistrictServicedistrictId - 行政区域方案唯一标识public DistrictLevelDTO getDistrictLevelDetail(Long districtId, Short index)
DistrictServicegetDistrictLevelDetail in interface DistrictServicedistrictId - 行政区域方案唯一标识index - 级别索引@CacheEvict(value="DistrictCache",
allEntries=true)
public void updateDistrictItem(DistrictItemEditDTO editDTO)
DistrictServiceupdateDistrictItem in interface DistrictServiceeditDTO - 编辑参数@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DistrictCache", allEntries=true) public void deleteDistrictItem(Long districtId, Long id)
DistrictServicedeleteDistrictItem in interface DistrictServicedistrictId - 区域方案唯一标识id - 区域单元标识public List<DistrictItemDTO> getDistrictItem(Long districtId, Long pid, String pCode, String keyword, Boolean withChildren, Integer searchCount)
DistrictServicegetDistrictItem in interface DistrictServicedistrictId - 区域方案唯一标识pid - 父节点标识keyword - 关键词withChildren - 是否获取孩子节点信息searchCount - 搜索结果返回上限public List<DistrictItemDTO> getDistrictItemList(Long districtId)
DistrictServicegetDistrictItemList in interface DistrictServicepublic Map<String,List<DistrictItemDTO>> getDistrictItemsGroup(Long districtId, Long pid, String keyword, Boolean withChildren)
DistrictServicegetDistrictItemsGroup in interface DistrictServicedistrictId - 区域方案唯一标识pid - 父节点标识keyword - 关键词withChildren - 是否获取孩子节点信息@Transactional(rollbackFor=java.lang.Exception.class) @CacheEvict(value="DistrictCache", allEntries=true) public void importDistrictItems(DistrictItemImportDTO importDTO)
DistrictServiceimportDistrictItems in interface DistrictServiceimportDTO - 导入参数public DistrictItemDTO getDistrictItemDetail(Long id)
DistrictServicegetDistrictItemDetail in interface DistrictServiceid - 区域单元标识public DistrictItemDTO getDistrictItemDetail(Long districtId, String itemCode)
DistrictServicegetDistrictItemDetail in interface DistrictServicedistrictId - 区域方案唯一标识itemCode - 区域单元编码public DistrictItemDTO getDistrictItemDetail(Long districtId, Integer level, String itemCode)
DistrictServicegetDistrictItemDetail in interface DistrictServicedistrictId - 区域方案唯一标识level - 区域级别itemCode - 区域单元编码public com.geoway.adf.gis.basic.geometry.IGeometry getDistrictItemGeometry(Long itemId)
DistrictServicegetDistrictItemGeometry in interface DistrictServiceitemId - 区域单元标识public List<DistrictItemDTO> queryDistrictItem(Long districtId, Short level, String geometry)
DistrictServicequeryDistrictItem in interface DistrictServiceCopyright © 2025. All rights reserved.