简要描述:
- 归档项目
请求域名:
- https://dev8.yunzmall.com/business/1/
请求URL:
POST/plugin/project-manager/statistic/statistic
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"taskStatistic": {
"project_count": 4,
"task_total": 2,
"not_complete": "2",
"completed": 0,
"overdue": "2",
"archive": 1,
"overdue_rate": "100.00",
"completed_rate": "0.00"
},
"staffStatistic": [
{
"staff_uid": 67,
"task_total": 2,
"not_complete": "2",
"completed": "0",
"overdue": "2",
"has_one_staff": {
"id": 67,
"name": "孙新建",
"avatar": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc74uEj20uqzYN6PRP3qgOwQ/0",
"userid": null,
"avatar_mediaid": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc74uEj20uqzYN6PRP3qgOwQ/0"
},
"archive": 2,
"overdue_rate": "100.00",
"completed_rate": "0.00"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "归档失败",
"data": []
}
taskStatistic返回参数说明:任务统计
| 参数名 | 类型 | 说明 |
|---|---|---|
| project_count | int | 总项目 |
| task_total | int | 总任务 |
| not_complete | int | 未完成 |
| completed | int | 已完成 |
| overdue | int | 已逾期 |
| archive | int | 已归档 |
| overdue_rate | int | 逾期率 |
| completed_rate | int | 完成率 |
staffStatistic参数说明:成员统计
| 参数名 | 类型 | 说明 |
|---|---|---|
| task_total | int | 总任务 |
| not_complete | int | 未完成 |
| completed | int | 已完成 |
| overdue | int | 已逾期 |
| overdue_rate | int | 逾期率 |
| completed_rate | int | 完成率 |
| has_one_staff | array | 员工信息 |
has_one_staff参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | int | 员工ID |
| name | string | 员工名称 |
| avatar | string | 员工头像 |
备注:
- 更多返回错误代码请看首页的错误代码描述