文档
测试

员工岗位晋升预览

POST
/api/user/promotion/selectPromotion

接口描述

查询员工晋升图谱

请求头

参数名
类型
描述
必填
Content-Type
String
application/json
必填
token
string
必填

场景说明

user_id 有值时,为员工晋升第一次查询,默认向上级岗位方向查询 员工晋升查询时,增加晋升条件[xxx_all]总数量和[xxx_completed]已完成数量。 user_id 没值时,是岗位预览或单方向查询 岗位预览第一次查询时:direction=all, current_type=3; 预览中,切换上级岗位路线时:direction=up,current_type=3; 预览中,切换下级岗位路线时:direction=down,current_type=3; current_type=1,适用于,只查路径,不查当前岗位明细,或是已有当前岗位明细 current_type=2,适用于查询全部明细 current_type=3,适用于查询有开启的晋升条件明细

请求参数

参数名
类型
描述
必填
college_id
string
学院id
必填
user_id
string
用户id
可选
job_id
string
岗位id
可选
direction
string
方向;all:全部;up:查询上级方位岗位;down:查询下级方位岗位
可选
current_type
string
当前岗位查询类型;0:不查;1:查询岗位名称;2:查询岗位全部晋升明细;3:查询已开启的晋升明细
可选

请求示例

``` { "college_id": "61d77baabc27cbc818fcf8bf9bcc57f8", "user_id": "" } ```

响应参数

参数名
类型
描述
必填
flag
int
返回状态 示例:0
必填
msg
string
返回消息 示例:success
必填
abid
string
必填
val
array
数据列表
必填
id
string
岗位id
必填
name
string
岗位名称
必填
title_grade_id
string
职称等级id
必填
title_grade_name
string
职称等级名称
必填
location
string
是否当前岗位
必填
children
array
数据列表 多个上下级岗时,使用数组
可选
id
string
岗位id
必填
name
string
岗位名称
必填
title_grade_id
string
职称等级id
必填
title_grade_name
string
职称等级名称
必填
station_all
int
学习课程目录 总数量
可选
station_completed
int
学习课程目录 已完成数量
可选
stationList
array
数据列表 学习课程目录
可选
id
string
课程目录id
必填
name
string
课程目录名称
必填
completed
int
是否完成;0:未完成;1:已完成
必填
promotion_all
int
晋升条件 总数量
可选
promotion_completed
int
晋升条件 已完成数量
可选
exam_all
int
理论考试 总数量
可选
exam_completed
int
理论考试 已完成数量
可选
examList
array
数据列表 理论考试
可选
id
string
考试id
必填
name
string
考试名称
必填
completed
int
是否完成;0:未完成;1:已完成
必填
appraise_all
int
实操鉴定 总数量
可选
appraise_completed
int
实操鉴定 已完成数量
可选
appraiseList
array
数据列表 实操鉴定
可选
struct_all
int
巡检稽核 总数量
可选
struct_completed
int
巡检稽核 已完成数量
可选
structList
array
数据列表 巡检稽核
可选
check_length_service
string
是否开启在职时长
可选
length_service
int
在职时长(月)
可选
length_service_completed
int
已在职时长(月)
可选

返回示例

``` { "flag": 0, "msg": "success", "abid": "", "val": [ { "appraiseList": [ { "appraisal_date": "0", "appraisal_rate": "0", "completed": 1, "detail_type": "3", "id": "a83a66345b2c42ad68329d3385a983bc", "job_id": "b8d2629a5957d4373eeb348c0ff21e6d", "name": "大飒飒大师" } ], "appraise_all": 1, "appraise_completed": 1, "c_date": "2020-09-16 16:29:59", "check_appraisal": "1", "check_appraise": "1", "check_length_service": "1", "check_theory_test": "1", "examList": [ { "appraisal_date": "0", "appraisal_rate": "0", "completed": 0, "detail_type": "2", "id": "9f09e97fc8d8bc94f7f9050f8d7043f3", "job_id": "b8d2629a5957d4373eeb348c0ff21e6d", "name": "新建试卷" }, { "appraisal_date": "0", "appraisal_rate": "0", "completed": 1, "detail_type": "2", "id": "53ac4bb11968736ed3b0e455090c6ce7", "job_id": "b8d2629a5957d4373eeb348c0ff21e6d", "name": "大润发特工" } ], "exam_all": 2, "exam_completed": 1, "id": "b8d2629a5957d4373eeb348c0ff21e6d", "length_service": "2", "length_service_completed": 7, "location": "1", "m_date": "2021-08-12 16:29:17", "m_user_id": "79cc1a27272df5d645b4aa12c638e925", "name": "测试人员", "promotion_all": 3, "promotion_completed": 2, "sort": "2", "stationList": [ { "appraisal_date": "0", "appraisal_rate": "0", "completed": 0, "detail_type": "1", "id": "3f2c30c1e01885388940b7fa46b89244", "job_id": "b8d2629a5957d4373eeb348c0ff21e6d", "name": "是实际困难" }, { "appraisal_date": "0", "appraisal_rate": "0", "completed": 0, "detail_type": "1", "id": "65f50a9ff2b44a48ce45fd617fdfca17", "job_id": "b8d2629a5957d4373eeb348c0ff21e6d", "name": "当你凝视" }, { "appraisal_date": "0", "appraisal_rate": "0", "completed": 1, "detail_type": "1", "id": "4706265765be87aab41309b3497016af", "job_id": "b8d2629a5957d4373eeb348c0ff21e6d", "name": "北站" } ], "station_all": 3, "station_completed": 1, "subordinateList": [ { "id": "381a5fd9ae8fa3801623d7299d8996f8", "name": "店长" } ], "superiorList": [ { "id": "8e140ec062c0034e03c0d37f28f84b5d", "name": "传菜员22" } ], "title_grade_id": "c665f440e1c3dfcf0b8ce1f79a9e391e", "title_grade_name": "M2等级" }, { "id": "8e140ec062c0034e03c0d37f28f84b5d", "name": "传菜员22", "title_grade_id": "764f5999240bcff4176ae6f925792dbb", "title_grade_name": "M3等级" }, { "id": "a00bf894c738304c12913a2dbf7e9049", "name": "经理", "title_grade_id": "855015031808acc9b185ce36394c20cb", "title_grade_name": "M4等级" } ] } ```