文档
测试

获取部门培训得分数据

POST
/api/getTrainScore

请求头

参数名
类型
描述
必填
x-access-token
String
登录后的token
必填

请求参数

参数名
类型
描述
必填
date
String
根据日期检索,可为空,默认为最后一次得分
必填
persons
Array
人员、部门的id数组,可以同时根据部门id和人员id检索,可为空,为空时为全组织的得分情况
必填
categorys
Array
分类的id数组,可以为空,为空时,为全部分类得分情况
必填

响应参数

参数名
类型
描述
必填
code
int
响应code 成功=200,失败=201,token失效=401
必填
message
String
响应提示语
必填
data
Map
业务数据
必填
root
Map
培训得分
必填
id
String
组织Id
必填
name
String
组织名称
必填
score
float
组织总得分
必填
children
Array
子部门、子成员数组
必填
child
Map
子部门、子成员
必填
id
String
子部门、子成员Id
必填
name
String
子部门、子成员名称
必填
score
float
子部门、子成员得分
必填
children
Array
子部门、子成员
必填

说明 / 示例

# 1,请求示例 ```json { "categorys": [ "ea3455c6fbe246ab", "ea3455c6fbe246ab", "ea3455c6fbe246ab" ], "persons": [ "ea3455c6fbe246ab", "ea3455c6fbe246ab", "ea3455c6fbe246ab" ], "date": "2020-12-12" } ``` # 2,返回示例 ```json { "code": 200, "message": "请求成功", "data": { "root": { "id": "ea3455c6fbe246ab", "name": "中银国际酒店", "score": "3.0", "children": [ { "id": "ea3455c6fbe246ab", "name": "工程部", "score": "3.0", "children": [ { "id": "ea3455c6fbe246ab", "name": "工程部-工程一部", "score": "3.0", "children": [ { "id": "ea3455c6fbe246ab", "name": "唐三", "score": "3.0" } ] } ] }, { "id": "ea3455c6fbe246ab", "name": "王强", "score": "3.0" } ] } } } ```