系统管理 街道社区管理 - Aladdin-GIS/XiShiGIS GitHub Wiki

1、获得辖区数据

请求地址: GridArea/GetAll

请求方式: post

输入:

名称 类型 注释 默认值
start int 页码 0
limit int 显示数量 10
order int 排序字段 null
sort int 排序 null
search string 检索条件 null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

2、添加辖区

请求地址: GridArea/Add

请求方式: post

输入:

名称 类型 注释 默认值
GA_CODE string 编码 null
GA_NAME string 名称 null
GA_REMARK string 备注 null
GA_PID string 上级ID null
GA_PNAME string 上级名称 null
GA_SORT int 排序 null
GA_ID int 辖区ID null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

3、修改辖区

请求地址: GridArea/Modify

请求方式: post

输入:

名称 类型 注释 默认值
GA_CODE string 编码 null
GA_NAME string 名称 null
GA_REMARK string 备注 null
GA_PID string 上级ID null
GA_PNAME string 上级名称 null
GA_SORT int 排序 null
GA_ID int 辖区ID null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

4、删除辖区

请求地址: GridArea/Delete?ids=1,2,3,...

请求方式: get

输入:

名称 类型 注释 默认值
ids string 辖区ID字符串组 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

5、根据辖区ID获得子辖区数据

请求地址: GridArea/GetAllByPID

请求方式: get

输入:

名称 类型 注释 默认值
pid int 辖区ID 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

6、获得辖区网格范围数据

请求地址: AreaRange/GetAll

请求方式: post

输入:

名称 类型 注释 默认值
GA_ID int 辖区ID 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

7、添加辖区范围

请求地址: AreaRange/Add

请求方式: post

输入:

名称 类型 注释 默认值
AR_RANGE string 范围字符串 null
AR_RANGE_GEOM_TEXT string 范围地理字符串 null
AR_X string X坐标 null
AR_Y string Y坐标 null
AR_COLOR string 辖区颜色 null
GA_ID int 辖区ID null

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

8、删除辖区范围

请求地址: AreaRange/Delete?ids=1,2,3,...

请求方式: get

输入:

名称 类型 注释 默认值
ids string 辖区范围ID字符串组 0

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200

9、获取所有辖区数据

请求地址: GridArea/GetAllWithOut

请求方式: post

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200
gaid1 [] 街道数据
gaid2 [] 社区数据

10、获取相关辖区的企业信息

请求地址: GridArea/GetCompanyInfo/id?name=XXX

请求示例: GridArea/GetCompanyInfo/5?name=通惠社区

请求方式: POST

输入:

名称 类型 注释 默认值
id int 辖区id 0
name string 辖区名称

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200
Owners int 楼房总数 0
Companies int 企业总数 0
Unin int 未入驻企业总数 0
Closes int 停业企业总数 0
UnRegitrations int 工商未登记企业总数 0
Nationals int 国税登记总数 0
Lands int 地税登记总数 0

11、在相关辖区基础上获取对应类别的企业信息

请求地址: GridArea/GetCompany

请求方式: POST

输入:

名称 类型 注释 默认值
Id int 辖区id 0
Name string 辖区名称
start int 过滤起始Id 0
limit int 获取的数量 10
Type string 类别

对应 Type 参数类型

名称 类型 注释
Owners string 楼房总数
Companies string 企业总数
Unin string 未入驻企业总数
Closes string 停业企业总数
UnRegitrations string 工商未登记企业总数
Nationals string 国税登记总数
Lands string 地税登记总数

输出:

名称 类型 注释 默认值
total int 记录总数
rows object 数据
msg string 信息
success bool 成功/失败
code int 代码 200