|
|
@ -51,6 +51,13 @@ public class SysDepartBoundaryServiceImpl extends ServiceImpl<SysDepartBoundaryM |
|
|
|
|
|
|
|
@Override |
|
|
|
public TableDataInfo<SysDepartBoundary> listSysDepartBoundary(PageQuery pageQuery, SysDepartBoundary departBoundary) { |
|
|
|
if (ObjectUtil.isNotEmpty(departBoundary.getDeptId())){ |
|
|
|
List<SysDeptVo> deptList = deptService.listTreeDept(departBoundary.getDeptId()); |
|
|
|
|
|
|
|
departBoundary.setDeptIds(deptList.stream().map(SysDeptVo::getDeptId).distinct().toList()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Page<SysDepartBoundary> page = baseMapper.listSysDepartBoundary(pageQuery.build(),departBoundary); |
|
|
|
|
|
|
|
return TableDataInfo.build(page); |
|
|
@ -120,7 +127,7 @@ public class SysDepartBoundaryServiceImpl extends ServiceImpl<SysDepartBoundaryM |
|
|
|
if (ObjectUtil.isNotEmpty(attributes)) { |
|
|
|
map.putAll(attributes); |
|
|
|
} |
|
|
|
map.put("XZQMC", kmzResult.getName()); |
|
|
|
map.put("O_NAME", kmzResult.getName()); |
|
|
|
map.put("the_geom", kmzResult.getWkt()); |
|
|
|
kmzList.add(map); |
|
|
|
}); |
|
|
|