年度报告

[TOC] # [年度报告接口] ### 集团公司 /annualReports ## 1. /annualFactoryReports #### 接口功能 > 获取子公司年度报告 #### 请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |status|false|integer|状态 (0 正常 9 删除)| |page|false|integer|页数| |size|false|integer|每页条数| |category|false|string|类型 (mid_year 年中 end_year 年末)| ###### 请求内容: ``` curl -X GET 'http://localhost:8080/annualFactoryReports' ``` ###### 返回结果: 字段 参考createTemplate 接口 ``` { "exception": "", "path": "/annualFactoryReports", "data": { "content": [ { "id": 6, "officeCode": "vv", "officeName": "xx", "factoryCode": null, "factoryName": null, "year": 2019, "category": "mid_year", "status": 0, "createBy": "admin", "createTime": "2020-09-15 10:00:55", "updateBy": "admin", "updateTime": "2020-09-15 10:00:55", "content": null } ], "pageable": { "sort": { "sorted": false, "unsorted": true, "empty": true }, "offset": "0", "pageSize": 10, "pageNumber": 0, "paged": true, "unpaged": false }, "last": true, "totalElements": "1", "totalPages": 1, "number": 0, "size": 10, "sort": { "sorted": false, "unsorted": true, "empty": true }, "numberOfElements": 1, "first": true, "empty": false }, "error": "", "message": "ok", "operator": "系统管理员", "status": 200, "timestamp": "2020-09-15 10:16:48" } ``` ---------- ## 2. /annualFactoryReports #### 接口功能 > 创建模板 / JSON #### 请求方式 > POST ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |officeName|true|String|公司名称| |officeCode|true|String|公司编码| |year|true|integer|年份| |category|true|String|类型 (mid_year 年中 end_year 年末)| |content|true|string|内容| ###### 请求内容: ```json { "officeName":"xx", "officeCode":"vv", "year":2019, "content":"fsdfsdfsdfsdfsdf", "category":"mid_year" } ``` ---------- ## 3. /annualFactoryReports #### 接口功能 > 修改年度报告 #### 请求方式 > put ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |id|true|integer|ID| |officeName|true|String|公司名称| |officeCode|true|String|公司编码| |year|true|integer|年份| |category|true|String|类型 (mid_year 年中 end_year 年末)| |content|true|string|内容| ###### 请求结果: ``` { "id":"6", "officeName":"xx", "officeCode":"vv", "year":2019, "content":"fsdfsdfsdfsdfsdf", "category":"mid_year" } ``` ---------- ## 4. /annualFactoryReports/content #### 接口功能 > 获取年度报告详情 #### 请求方式 > get ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |id|true|integer|ID| ###### 请求: ``` curl -X GET 'http://localhost:8080//annualFactoryReports/content?id=6' ``` ## 5. http://localhost:8980/enfi/database/ds/executeBySql #### 接口功能 > 获取子公司年度报告 #### 请求方式 > GET ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |sqlCode|false|string|业务编码| |dt|false|integer|年份| |dt_start|false|integer|开始时间| |dt_end|false|integer|结束时间| |factory_code|false|string|公司编号| ###### 请求内容: ``` curl -X GET 'http://localhost:8980/enfi/database/ds/executeBySql?sqlCode=xxx&dt=2020&factory_code=WX' ``` ## 6. /annualFactoryReports/{id} #### 接口功能 > 删除 #### 请求方式 > delete ###### 请求参数 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |id|true|integer|ID| ###### 请求: ``` curl -X DELETE 'http://localhost:8080/annualFactoryReports/6' ```