目录 [1.通用](#1)     [ 1.1获取所有区域接口](#1.1)     [ 1.2获取全部补贴类型](#1.2) [2.首页](#2)     [ 2.1补贴统计](#2.1)     [ 2.2服务机构统计](#2.2)     [ 2.3养老机构统计](#2.3)     [ 2.4服务对象统计](#2.4) [3.补贴](#3)     [ 3.1获取总统计数据--查subsidy_log表](#3.1)     [ 3.2年度月度统计数据](#3.2) [4.服务对象](#4)     [ 4.1获取统计数据](#4.1)     [ 4.2获取历史统计数据](#4.2) [5.服务机构](#5)     [ 5.1根据区域id获取区域下所有机构和人员数量以及订单总数](#5.1)     [ 5.2根据区域id获取区域下所有服务以及服务详情和订单人数](#5.2)     [ 5.3根据区域id和订单量查询服务机构排名情况](#5.3)     [ 5.4根据区域id和订单量查询服务机构排名情况](#5.4)     [ 5.5执行中订单](#5.4) [5.养老机构](#6)     [ 6.1 获取统计数据](#6.1)     [ 6.2 床位个数排名](#6.2)     [ 6.3 床位使用率排名](#6.3)     [ 5.4 历史数据](#6.4) [7.新首页](#7)     [ 7.1 社会救助](#7.1)     [ 7.2 社会事务](#7.2)     [ 7.3 养老服务](#7.3)     [ 7.4 儿童福利](#7.4)     [ 7.5 综合分析](#7.5)     [ 7.6 区域地名](#7.6) [8.库表](#8)     [ 8.1 区域](#8.1)     [ 8.2 服务详情-即服务项](#8.2)     [ 8.3 服务对象](#8.3)     [ 8.4 服务人员](#8.4)     [ 8.5 订单](#8.5)     [ 8.6 服务机构](#8.6)     [ 8.7 养老机构](#8.7)     [ 8.8 补贴日志](#8.8)     [ 8.9 补贴人员](#8.9)

一、通用

1.1获取所有区域接口

###### 接口功能 > 获取所有区域 ###### URL > /api/common/getAllArea ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 名称 | | pid | String | 上级id | ###### 返回示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607648233416, "result": [ { "id": "1336922902628536320", "createBy": null, "createTime": "2020-12-10 14:37:13", "updateBy": null, "updateTime": null, "delFlag": 0, "name": "石家庄市", "pid": null }, { "id": "1336923258360041472", "createBy": null, "createTime": "2020-12-10 14:38:38", "updateBy": null, "updateTime": null, "delFlag": 0, "name": "长安区", "pid": "1336922902628536320" }, ... ] } ```

1.2获取全部补贴类型

###### 接口功能 > 获取全部补贴类型 ###### URL > /api/common/getAllSubsidyType ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | index | int | type值 | | name | String | 名称 | ###### 返回示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607648519602, "result": [ { "index": 0, "name": "困难残疾生活补贴" }, { "index": 1, "name": "重度残疾人生活补贴" }, { "index": 2, "name": "高龄老人生活补贴" }, { "index": 3, "name": "高龄老人生活津贴" }, ... ] } ```

二、首页

2.1补贴统计

###### 接口功能 > 根据区域id获取补贴统计 ###### URL > /api/index/getSubsidyStatics ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 否 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | total | double | 补贴总金额 | | typeName | String | 补贴项目名称 | | sum | double | 补贴项目总金额 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607665964425, "result": { "total": 2500, "list": [ { "typeName": "高龄老人生活补贴", "sum": 1500, "type": 2 }, { "typeName": "重度残疾人生活补贴", "sum": 1000, "type": 1 } ] } } ```

2.2服务机构统计

###### 接口功能 > 根据区域id服务机构统计 ###### URL > /api/index/getOrgFWStatics ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 否 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | total | int | 服务机构总数 | | detail | String | 服务项目 | | num | int | 此服务项目总个数 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607667809694, "result": { "total": 0, "list": [ { "num": 1, "detail": "康复服务" }, { "num": 1, "detail": "生活料理" } ] } } ```

2.3养老机构统计

###### 接口功能 > 根据区域id获取养老机构统计 ###### URL > /api/index/getYlOrgYLStatics ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 否 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | total | int | 养老机构总个数 | | type0 | int | 养老院个数 | | type1 | int | 敬老院个数 | | type2 | int | 疗养院个数 | | square | double | 总面积 | | bedNumber | int | 床位个数 | | nurseNumber | int | 护理人员个数 | | duixiangNumber | int | 入住老人个数 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607668287242, "result": { "square": 5100, "total": 2, "type2": 0, "duixiangNumber": 24, "type1": 0, "bedNumber": 20, "type0": 2, "nurseNumber": 57 } } ```

2.4服务对象统计

###### 接口功能 > 根据区域id获取服务对象统计 ###### URL > /api/index/getFuwuPersonStatics ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 否 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | total | double | 服务对象总个数 | | typeName | String | 补贴项目名称 | | sum | int | 补贴项目总人数 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607669982970, "result": { "total": 2, "list": [ { "num": 1, "typeName": "重度残疾人生活补贴", "type": 1 }, { "num": 1, "typeName": "高龄老人生活补贴", "type": 2 } ] } } ```

三、补贴

3.1获取总统计数据

###### 接口功能 > 根据区域id和补贴类型获取总的统计数据
> 查subsidy_log表 其中环比同比及复合数及符合率 为接口返回的随机数 ###### URL > /api2/subsidy/getTotalStatistics ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 否 |String | 区域id | | type | 否 |Integer | 补贴类型 | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | totalPersonNum | int | 获取补贴的总人数 | | fwPersonCount | double | 总金额 | | hb1 | int | 补贴总人数,环比增长 | | tb1 | int | 补贴总人数,同比增长 | | hb2 | int | 补贴总金额,环比增长 | | tb2 | int | 补贴总金额,同比增长 | | fh1 | int | 复合数 | | fh2 | int | 符合率 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607648976798, "result": { "totalPersonNum": 1, "totalMoney": 100, "hb1": 1, "tb1": 100, "hb2": 1, "tb2": 100, "fh1": 1, "fh2": 100, } } ```

3.2年度月度统计数据

###### 接口功能 > 根据区域id和补贴类型获取年度月度统计数据
> 查subsidy_log表 根据表中字段areaId 和12中类型对应的type查询 ###### URL > /api2/subsidy/getStatistics ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 否 |String | 区域id | | type | 否 |Integer | 补贴类型 | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | monthStatistics | Objec | 月度统计数据 | | yearStatistics | Objec | 年度统计数据 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607649436415, "result": { "monthStatistics": [ { "sum": 100, "time": "2020-12" } ], "yearStatistics": [ { "sum": 100, "time": "2020" } ] } } ```

四、服务对象

4.1获取统计数据

###### 接口功能 > 根据区域id和补贴类型获取总的统计数据----补贴人员表subsidy_person_statics,每月可进行一次插入数据
> 对应图上服务对象总数模块中内容及饼图数据
> 现在为接口放回的随机数没有进行真实查表 ###### URL > /api2/fwdx/getStaticsData ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | | type | 否 |Integer | 补贴类型 | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | subsidyType | int | 补贴类型 | | month | String | 月份 | | yearAdd | int | 年新增 | | yearOut | int | 年退出 | | yearSum | int | 年合计 | | monthAdd | int | 月新增 | | monthOut | int | 月退出 | | monthSum | int | 月合计 | | totalNum | int | 申请总次数 | | checkNum | int | 复合总次数 | | personNum | int | 服务总人数 | | subsidyTypeName | String | 补贴名称 | | child | List | 子项目 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607743828413, "result": { "id": 0, "subsidyType": 0, "areaId": null, "month": "2020-12", "yearAdd": 1345, "yearOut": 233, "yearSum": 12330, "monthAdd": 117, "monthOut": 53, "monthSum": 5500, "totalNum": 3054, "checkNum": 3400, "personNum": 13500, "subsidyTypeName": "困难残疾生活补贴", "child": [ { "id": 1, "subsidyType": 0, "areaId": "1336922902628536320", "month": "2020-12", "yearAdd": 745, "yearOut": 124, "yearSum": 6790, "monthAdd": 50, "monthOut": 43, "monthSum": 3200, "totalNum": 1854, "checkNum": 2100, "personNum": 7800, "subsidyTypeName": "困难残疾生活补贴", "child": null }, { "id": 2, "subsidyType": 1, "areaId": "1336922902628536320", "month": "2020-12", "yearAdd": 600, "yearOut": 109, "yearSum": 5540, "monthAdd": 67, "monthOut": 10, "monthSum": 2300, "totalNum": 1200, "checkNum": 1300, "personNum": 5700, "subsidyTypeName": "重度残疾人生活补贴", "child": null } ] } ```

4.2获取历史统计数据

###### 接口功能 > 根据区域id和补贴类型获取获取历史统计数据----补贴人员表subsidy_person_statics,每月可进行一次插入数据
> 对应图下部两个主线图数据
> 现在为接口放回的随机数没有进行真实查表 ###### URL > /api2/fwdx/getHistoryStaticsData ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | | type | 否 |Integer | 补贴类型 | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | month | String | 月份 | | mAdd | int | 月新增 | | mOut | int | 月退出 | | totalName | int | 申请总次数 | | checkNum | int | 复核总次数 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607744308886, "result": [ { "mOut": 53, "month": "2020-12", "checkNum": 3400, "mAdd": 117, "totalName": 3054 }, { "mOut": 15, "month": "2020-11", "checkNum": 3400, "mAdd": 75, "totalName": 2454 }, { "mOut": 25, "month": "2020-10", "checkNum": 3400, "mAdd": 105, "totalName": 2284 } ] } ```

五、服务机构

5.1根据区域id获取区域下所有机构和人员数量以及订单总数

###### 接口功能 > 根据区域id获取区域下所有机构和人员数量以及订单总数
> 服务机构表org_fuwu,服务人员表fuwu_person,订单表order ###### URL > /api2/fwjg/getCountByAreaId ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | fwjgCount | Integer | 服务机构总数 | | fwPersonCount | Integer | 服务人员总数 | | orderCount | Integer | 订单总数 | | orderWatch | String | 订单监控率 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607587253794, "result": { "fwjgCount": 1, "fwPersonCount": 1, "orderCount": 2, "orderWatch": "100%" } } ```

5.2根据区域id获取区域下所有服务以及服务详情和订单人数

###### 接口功能 > 根据区域id获取区域下所有机构和人员数量以及订单总数
> 服务详情表fuwu_details, 订单表order ###### URL > /api2/fwjg/getFwnlByAreaId ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | fuwuDetails | object | 服务详情一级菜单 | | fuwuDetailsList | list | 服务详情二级菜单 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607594225830, "result": [ { "fuwuDetails": { "id": "1336969411080359936", "createBy": null, "createTime": "2020-12-10 17:42:02", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1336923302341513216", "orgFwId": "1336941016934125568", "pid": null, "name": "康复服务", "orderNumber": null }, "fuwuDetailsList": [ { "id": "1336969601455624192", "createBy": null, "createTime": "2020-12-10 17:42:47", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1336923302341513216", "orgFwId": "1336941016934125568", "pid": "1336969411080359936", "name": "功能训练", "orderNumber": 1 }, { "id": "1336969641251180544", "createBy": null, "createTime": "2020-12-10 17:42:56", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1336923302341513216", "orgFwId": "1336941016934125568", "pid": "1336969411080359936", "name": "康复按摩", "orderNumber": 0 } ] }, { "fuwuDetails": { "id": "1336969708104192000", "createBy": null, "createTime": "2020-12-10 17:43:12", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1336923302341513216", "orgFwId": "1336941016934125568", "pid": null, "name": "生活照料服务", "orderNumber": null }, "fuwuDetailsList": [ { "id": "1336969818158534656", "createBy": null, "createTime": "2020-12-10 17:43:39", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1336923302341513216", "orgFwId": "1336941016934125568", "pid": "1336969708104192000", "name": "喘息服务", "orderNumber": 0 } ] } ] } } ```

5.3 服务机构订单量

###### 接口功能 > 服务机构订单量
> 服务机构表org_fuwu,订单表order ###### URL > /api2/fwjg/getFwjgOrderByOrderNumber ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 服务机构名称 | | orderNumber | int | 订单量 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607822690539, "result": [ { "id": "13", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "1", "name": "康复按摩", "orderNumber": 0 }, { "id": "21", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "个人卫生服务", "orderNumber": 0 }, { "id": "22", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "喘息服务", "orderNumber": 0 }, { "id": "23", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "陪诊服务", "orderNumber": 0 }, { "id": "24", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "协助移位", "orderNumber": 0 }, { "id": "31", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "3", "name": "小时工", "orderNumber": 0 }, { "id": "32", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "3", "name": "日常保洁", "orderNumber": 0 }, { "id": "33", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "3", "name": "衣服拆洗缝补", "orderNumber": 0 }, { "id": "41", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "4", "name": "关怀服务", "orderNumber": 0 }, { "id": "42", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "4", "name": "生活陪伴", "orderNumber": 0 } ```

5.4 服务领域订单量

###### 接口功能 > 服务领域订单量
> 服务详情表fuwu_details, 订单表order ###### URL > /api2/fwjg/getFuwuDetailsOrderByOrderNumber ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 服务领域名称 | | orderNumber | int | 订单量 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607823539804, "result": [ { "id": "13", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "1", "name": "康复按摩", "orderNumber": 0 }, { "id": "21", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "个人卫生服务", "orderNumber": 0 }, { "id": "22", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "喘息服务", "orderNumber": 0 }, { "id": "23", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "陪诊服务", "orderNumber": 0 }, { "id": "24", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "2", "name": "协助移位", "orderNumber": 0 }, { "id": "31", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "3", "name": "小时工", "orderNumber": 0 }, { "id": "32", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "3", "name": "日常保洁", "orderNumber": 0 }, { "id": "33", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "3", "name": "衣服拆洗缝补", "orderNumber": 0 }, { "id": "41", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "4", "name": "关怀服务", "orderNumber": 0 }, { "id": "42", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "4", "name": "生活陪伴", "orderNumber": 0 } ] } ```

5.5执行中订单

###### 接口功能 > 执行中订单
> 表order,表fuwu_person,表fuwu_details ###### URL > /api2/fwjg/getOrder ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | count | int | 执行中订单数量 | | orderByExecuteList | list | 执行中订单详情 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607824114880, "result": { "orderByExecuteList": [ { "order": { "id": "fds3", "createBy": null, "createTime": "2020-12-12 21:00:00", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1", "detailId": "11", "detail": "指导评估", "duixiangId": "1", "personId": "1", "state": 0 }, "fuwuPerson": { "id": "1", "createBy": null, "createTime": "2020-12-11 14:17:55", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1", "name": "张三", "age": null, "sex": null, "sfzhm": null, "orgFwId": "1" }, "fuwuDetails": { "id": "11", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "1", "name": "指导评估", "orderNumber": null } }, { "order": { "id": "1", "createBy": null, "createTime": "2020-12-17 17:27:37", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1", "detailId": "11", "detail": "指导评估", "duixiangId": "1", "personId": "1", "state": 0 }, "fuwuPerson": { "id": "1", "createBy": null, "createTime": "2020-12-11 14:17:55", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1", "name": "张三", "age": null, "sex": null, "sfzhm": null, "orgFwId": "1" }, "fuwuDetails": { "id": "11", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "1", "name": "指导评估", "orderNumber": null } }, { "order": { "id": "2", "createBy": null, "createTime": "2020-12-24 17:27:41", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1", "detailId": "12", "detail": "功能训练", "duixiangId": "1", "personId": "1", "state": 1 }, "fuwuPerson": { "id": "1", "createBy": null, "createTime": "2020-12-11 14:17:55", "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": "1", "name": "张三", "age": null, "sex": null, "sfzhm": null, "orgFwId": "1" }, "fuwuDetails": { "id": "12", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "areaId": null, "orgFwId": null, "pid": "1", "name": "功能训练", "orderNumber": null } } ], "count": 3 } } ```

六、养老机构

6.1 获取统计数据

###### 接口功能 > 获取统计数据
> 养老机构表org_yanglao, ###### URL > /api2/fwyl/getStaticsData ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | sum | int | 养老机构总数 | | square | int | 面积 | | bedNumber | int | 床位数 | | nurseNumber | int | 护理人员数 | | type0Num | int | 养老院个数 | | type1Num | int | 敬老院个数 | | type2Num | int | 疗养院个数 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607839952762, "result": { "sum": 3, "square": 10100, "bedNumber": 4020, "nurseNumber": 557, "type0Num": 3, "type1Num": 0, "type2Num": 0 } ```

6.2 床位个数排名

###### 接口功能 > 床位个数排名
> 养老机构表org_yanglao ###### URL > /api/fwyl/getBedNumList ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 养老机构名称 | | bedNumber | int | 床位数 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607840268824, "result": [ { "id": "3", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "name": "养老院3", "areaId": "1", "type": 0, "square": 5000, "bedNumber": 4000, "nurseNumber": 500, "duixiangNumber": 3000 }, { "id": "1", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "name": "养老院1", "areaId": "1", "type": 0, "square": 100, "bedNumber": 10, "nurseNumber": 13, "duixiangNumber": 12 }, { "id": "2", "createBy": null, "createTime": null, "updateBy": null, "updateTime": null, "delFlag": 0, "name": "养老院2", "areaId": "1", "type": 0, "square": 5000, "bedNumber": 10, "nurseNumber": 44, "duixiangNumber": 12 } ] ```

6.3 床位使用率排名

###### 接口功能 > 床位使用率排名
> 养老机构表org_yanglao,床位前10位+随机数, ###### URL > /api2/fwyl/getBedUseList ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 养老机构名称 | | num | int | 使用率(%) | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607840400599, "result": [ { "name": "养老院1", "num": 98 }, { "name": "养老院2", "num": 97 }, { "name": "养老院3", "num": 96 } ] } ```

6.4 历史数据

###### 接口功能 > 历史数据
> 图上连续12个月床位使用数量,千人养老床位--后台返回随机数 ###### URL > /api2/fwyl/getHistoryData ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | | areaId | 是 |String | 区域id | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | month | int | 月份 | | num | int | 使用床位数 | | num1 | int | 千人养老床位 | | num2 | int | 同比变化 | | num3 | int | 环比变化 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1607840559733, "result": { "month": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "num": [ 11898, 9702, 9954, 12690, 9270, 10980, 11466, 14238, 12492, 14292, 10584, 9558 ], "num1": 8, "num2": 1, "num3": -6 } } ```

七、新首页

7.1 社会救助

###### 接口功能 > 社会救助
> 没有查表 ###### URL > /api2/indexnew/getSocialAssistance ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | values | list | 0/月份 1/社会低保 2/城市特困 3/农村低保 4/农村特困 | | totalNum | int | 累计救助人数 | | bedNumber | int | 累计救助金额 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1608193290531, "result": { "totalNum": 8412, "values": [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], [ 11907653, 10597717, 9296957, 6597877, 4763372, 10710327, 9553979, 4834701, 10880464, 9810688, 5738737, 10748867 ], [ 11010462, 7804402, 9392711, 11341311, 8226456, 7441524, 4568079, 11054400, 4058794, 5997314, 9592501, 11165410 ], [ 7735633, 7007250, 6633273, 7130232, 7686402, 8403656, 7056768, 7306279, 9173077, 8598968, 10173203, 8361172 ], [ 6009653, 4813926, 5912294, 7372661, 11468996, 11789401, 10779945, 6445069, 10400497, 8283154, 11153893, 8146418 ] ], "totalMoney": 404936523 } } ```

7.2 社会事务

###### 接口功能 > 社会事务
> 没有查表 ###### URL > /api2/indexnew/getSocialAffair ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | values | list | 0/月份 1/结婚 2/离婚 | | num1 | int | 残疾补助人数 | | num2 | int | 残疾补助金额 | | num3 | int | 累计离世人员 | | num4 | int | 累计结婚登记 | | num5 | int | 重度残疾人员 | | num6 | int | 困难残疾人员 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1608193383484, "result": { "num6": 13425, "values": [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], [ 2124, 2143, 2462, 2373, 2278, 2425, 2467, 2471, 2425, 2282, 2341, 2153 ], [ 1689, 1412, 1607, 1188, 1844, 1871, 1940, 1781, 1498, 1550, 1274, 1080 ] ], "num1": 1768, "num5": 25956, "num4": 6543, "num3": 4568, "num2": 2562 } } ```

7.3 养老服务

###### 接口功能 > 养老服务
> 没有查表 ###### URL > /api2/indexnew/getPensionService ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | list | list | 0/高龄补贴 1/高龄津贴 2/寿星补贴 | | n1 | int | 养老机构数 | | n2 | int | 床位数 | | n3 | int | 服务机构数 | | n4 | int | 机构人员数 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1608193630945, "result": { "n1": 63, "n2": 8769, "n3": 458, "n4": 13876, "list": [ { "num": 1697, "money": 687 }, { "num": 1227, "money": 857 }, { "num": 1333, "money": 498 } ] } } ```

7.4 儿童福利

###### 接口功能 > 儿童福利
> 没有查表 ###### URL > /api2/indexnew/getChildService ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | list | list | 0/月份 1/无抚儿童 2/散养儿童 3/集供儿童 | | totalNum | int | 合计人数 | | avgNum | int | 平均年龄 | | yearAdd | int | 年增长 | | yearOut | int | 年退出 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1608194604735, "result": { "avgNum": 9, "yearAdd": 2268, "totalNum": 271746, "yearOut": 2094, "values": [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], [ 8468, 8438, 8015, 8664, 8977, 8769, 8970, 8211, 8663, 8573, 8334, 8060 ], [ 7097, 7015, 7507, 7733, 7471, 7981, 7616, 7427, 8208, 7083, 7323, 8056 ], [ 7163, 7200, 6417, 6599, 6223, 6923, 6380, 6289, 6150, 6754, 6320, 6669 ] ] } } ```

7.5 综合分析

###### 接口功能 > 综合分析
> 没有查表 ###### URL > /api2/indexnew/getZongHe ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | values | list | 0/月份 1/总数 2/核对数 | | checkTotalNum | int | 累计复核次数 | | proportion | int | 复核率 | | checkNum | int | 订单复核数 | | totalNum | int | 订单总数 | | totalServiceNum | int | 订单服务总数 | | totalServiceTime | int | 订单服务时长 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1608194895386, "result": { "totalServiceNum": 4888, "proportion": 130, "checkNum": 6372, "totalNum": 4888, "totalServiceTime": 7332, "values": [ [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], [ 596, 467, 580, 462, 521, 540, 597, 540, 529, 461, 595, 484 ], [ 371, 366, 388, 372, 424, 446, 434, 410, 414, 411, 414, 438 ] ], "checkTotalNum": 6372 } } ```

7.6 区域地名

###### 接口功能 > 区域地名 > 没有查表 ###### URL > /api2/indexnew/getRegion ###### 支持格式 > JSON ###### HTTP请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|----- | ###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | key | String | 名称 | | v | int | 值 | | unit | String | 单位 | ###### 接口示例 ``` java { "success": true, "message": "success", "code": 200, "timestamp": 1608195372905, "result": [ { "key": "居民区", "v": 105, "unit": "个" }, { "key": "大型建筑物", "v": 28, "unit": "个" }, { "key": "街道", "v": 31, "unit": "条" }, { "key": "维修", "v": 98, "unit": "块" }, { "key": "保洁", "v": 205, "unit": "块" }, { "key": "撤回", "v": 48, "unit": "块" } ] } ```

8.1 区域

###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 区域名称 | | pid | String | 上级区域id |

8.2 服务详情-即服务项

###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | areaId | String | 区域id | | orgFwId | String | 服务机构id | | pid | String | 隶属上级服务id | | name | String | 服务名称 |

8.3 服务对象

###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 区名称 | | age | String | 年龄 | | sex | String | 性别 | | sfzhm | String | 身份证号码 | | areaId | String | 区域id | | subsidyIds | String | 补贴集合 |

8.4 服务对象

###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | name | String | 区名称 | | age | String | 年龄 | | sex | String | 性别 | | sfzhm | String | 身份证号码 | | areaId | String | 区域id | | orgFwId | String | 服务机构id |

8.5 订单表t_yl_order

###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | areaId | String | 区域id | | detailId | String | 服务详情id | | detail | String | 服务详情 | | duixiangId | String | 服务对象id | | personId | String | 服务人员id | | state | String | 订单状态id |

8.6 服务机构t_yl_org_fuwu

###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | areaId | String | 区域id | | name | String | 服务详情id | | orderNumber | String | 服务详情 |

8.7 养老机构t_yl_org_yanglao

###### 返回字段 |返回字段|字段类型|说明 | |:----- |:------|:----------------------------- | | areaId | String | 区域id | | name | String | 名称 | | type | int | 类型 0/养老院 1/敬老院 2/疗养院" | | square | double | 面积 | | bedNumber | int | 床位数 | | nurseNumber | int | 护理人员数 | | duixiangNumber | int | 入住老人数 |

8.8 补贴日志t_yl_subsidy_log

###### 返回字段 |字段名|字段类型|说明 | |:----- |:------|:----------------------------- | | areaId | String | 区域id | | money | Double | 补助金额 | | type | int | 补助类型 | | duixiangId | int | 服务对象id |

8.9 补贴人员t_yl_subsidy_person_statics

###### 返回字段 |字段名|字段类型|说明 | |:----- |:------|:----------------------------- | | subsidyType | int | 补贴类型id | | areaId | String | 区域id | | month | String | 月份 | | yearAdd | int | 年新增 | | yearOut | int | 月退出 | | yearSum | int | 年合计 | | monthAdd | int | 月新增 | | monthOut | int | 月退出 | | monthSum | int | 月合计 | | totalNum | int | 申请总次数 | | checkNum | int | 复合总次数 | | personNum | int | 服务总人数 |