test(work): 适配新的模型测试

This commit is contained in:
Fu Diwei
2021-06-04 01:10:54 +08:00
parent be687f5ffb
commit 31f9425171
130 changed files with 1875 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{
"userid": "james",
"userface": "PLACE_HOLDER"
}

View File

@@ -0,0 +1,6 @@
{
"opencheckindatatype": 3,
"starttime": 1492617600,
"endtime": 1492790400,
"useridlist": [ "james", "paul" ]
}

View File

@@ -0,0 +1,43 @@
{
"errcode": 0,
"errmsg": "ok",
"checkindata": [
{
"userid": "james",
"groupname": "打卡一组",
"checkin_type": "上班打卡",
"exception_type": "地点异常",
"checkin_time": 1492617610,
"location_title": "依澜府",
"location_detail": "四川省成都市武侯区益州大道中段784号附近",
"wifiname": "办公一区",
"notes": "路上堵车迟到了5分钟",
"wifimac": "3c:46:d8:0c:7a:70",
"mediaids": [ "WWCISP_G8PYgRaOVHjXWUWFqchpBqqqUpGj0OyR9z6WTwhnMZGCPHxyviVstiv_2fTG8YOJq8L8zJT2T2OvTebANV-2MQ" ],
"sch_checkin_time": 1492617610,
"groupid": 1,
"schedule_id": 0,
"timeline_id": 2
},
{
"userid": "paul",
"groupname": "打卡二组",
"checkin_type": "外出打卡",
"exception_type": "时间异常",
"checkin_time": 1492617620,
"location_title": "重庆出口加工区",
"location_detail": "重庆市渝北区金渝大道101号金渝大道",
"wifiname": "办公室二区",
"notes": "",
"wifimac": "3c:46:d8:0c:7a:71",
"mediaids": [ "WWCISP_G8PYgRaOVHjXWUWFqchpBqqqUpGj0OyR9z6WTwhnMZGCPHxyviVstiv_2fTG8YOJq8L8zJT2T2OvTebANV-2MQ" ],
"lat": 30547645,
"lng": 104063236,
"deviceid": "E5FA89F6-3926-4972-BE4F-4A7ACF4701E2",
"sch_checkin_time": 1492617610,
"groupid": 2,
"schedule_id": 3,
"timeline_id": 1
}
]
}

View File

@@ -0,0 +1,7 @@
{
"starttime": 1599062400,
"endtime": 1599062400,
"useridlist": [
"ZhangSan"
]
}

View File

@@ -0,0 +1,111 @@
{
"errcode": 0,
"errmsg": "ok",
"datas": [
{
"base_info": {
"date": 1599062400,
"record_type": 1,
"name": "张三",
"name_ex": "Three Zhang",
"departs_name": "有家企业/realempty;有家企业;有家企业/部门A4",
"acctid": "ZhangSan",
"rule_info": {
"groupid": 10,
"groupname": "规则测试",
"scheduleid": 0,
"schedulename": "",
"checkintime": [
{
"work_sec": 38760,
"off_work_sec": 38880
}
]
},
"day_type": 0
},
"summary_info": {
"checkin_count": 2,
"regular_work_sec": 31,
"standard_work_sec": 120,
"earliest_time": 38827,
"lastest_time": 38858
},
"holiday_infos": [
{
"sp_description": {
"data": [
{
"lang": "zh_CN",
"text": "09/03 10:00~09/03 10:01"
}
]
},
"sp_number": "202009030002",
"sp_title": {
"data": [
{
"lang": "zh_CN",
"text": "请假0.1小时"
}
]
}
},
{
"sp_description": {
"data": [
{
"lang": "zh_CN",
"text": "08/25 14:37~09/10 14:37"
}
]
},
"sp_number": "202008270004",
"sp_title": {
"data": [
{
"lang": "zh_CN",
"text": "加班17.0小时"
}
]
}
}
],
"exception_infos": [
{
"count": 1,
"duration": 60,
"exception": 1
},
{
"count": 1,
"duration": 60,
"exception": 2
}
],
"ot_info": {
"ot_status": 1,
"ot_duration": 3600,
"exception_duration": []
},
"sp_items": [
{
"count": 1,
"duration": 360,
"time_type": 0,
"type": 1,
"vacation_id": 2,
"name": "年假"
},
{
"count": 0,
"duration": 0,
"time_type": 0,
"type": 100,
"vacation_id": 0,
"name": "外勤次数"
}
]
}
]
}

View File

@@ -0,0 +1,7 @@
{
"starttime": 1599062400,
"endtime": 1599408000,
"useridlist": [
"ZhangSan"
]
}

View File

@@ -0,0 +1,63 @@
{
"errcode": 0,
"errmsg": "ok",
"datas": [
{
"base_info": {
"record_type": 1,
"name": "张三",
"name_ex": "Three Zhang",
"departs_name": "有家企业/realempty;有家企业;有家企业/部门A4",
"rule_info": {
"groupid": 10,
"groupname": "规则测试"
},
"acctid": "ZhangSan"
},
"summary_info": {
"except_days": 3,
"regular_work_sec": 31,
"standard_work_sec": 29040,
"work_days": 3
},
"exception_infos": [
{
"count": 2,
"duration": 28920,
"exception": 4
},
{
"count": 1,
"duration": 60,
"exception": 1
},
{
"count": 1,
"duration": 60,
"exception": 2
}
],
"sp_items": [
{
"count": 0,
"duration": 0,
"time_type": 0,
"type": 100,
"vacation_id": 0,
"name": "外勤次数"
},
{
"count": 1,
"duration": 0,
"time_type": 0,
"type": 1,
"vacation_id": 2,
"name": "年假"
}
],
"overwork_info": {
"workday_over_sec": 10800
}
}
]
}

View File

@@ -0,0 +1,4 @@
{
"datetime": 1511971200,
"useridlist": [ "james", "paul" ]
}

View File

@@ -0,0 +1,131 @@
{
"errcode": 0,
"errmsg": "ok",
"info": [
{
"userid": "james",
"group": {
"grouptype": 1,
"groupid": 69,
"checkindate": [
{
"workdays": [
1,
2,
3,
4,
5
],
"checkintime": [
{
"work_sec": 36000,
"off_work_sec": 43200,
"remind_work_sec": 35400,
"remind_off_work_sec": 43200
},
{
"work_sec": 50400,
"off_work_sec": 72000,
"remind_work_sec": 49800,
"remind_off_work_sec": 72000
}
],
"flex_time": 300000,
"noneed_offwork": true,
"limit_aheadtime": 10800000,
"flex_on_duty_time": 0,
"flex_off_duty_time": 0
}
],
"spe_workdays": [
{
"timestamp": 1512144000,
"notes": "必须打卡的日期",
"checkintime": [
{
"work_sec": 32400,
"off_work_sec": 61200,
"remind_work_sec": 31800,
"remind_off_work_sec": 61200
}
]
}
],
"spe_offdays": [
{
"timestamp": 1512057600,
"notes": "不需要打卡的日期",
"checkintime": []
}
],
"sync_holidays": true,
"groupname": "打卡规则1",
"need_photo": true,
"wifimac_infos": [
{
"wifiname": "Tencent-WiFi-1",
"wifimac": "c0:7b:bc:37:f8:d3"
},
{
"wifiname": "Tencent-WiFi-2",
"wifimac": "70:10:5c:7d:f6:d5"
}
],
"note_can_use_local_pic": false,
"allow_checkin_offworkday": true,
"allow_apply_offworkday": true,
"loc_infos": [
{
"lat": 30547030,
"lng": 104062890,
"loc_title": "腾讯成都大厦",
"loc_detail": "四川省成都市武侯区高新南区天府三街",
"distance": 300
},
{
"lat": 23097490,
"lng": 113323750,
"loc_title": "T.I.T创意园",
"loc_detail": "广东省广州市海珠区新港中路397号",
"distance": 300
}
],
"schedulelist": [
{
"schedule_id": 221,
"schedule_name": "2",
"time_section": [
{
"time_id": 1,
"work_sec": 32400,
"off_work_sec": 61200,
"remind_work_sec": 31800,
"remind_off_work_sec": 61200,
"rest_begin_time": 43200,
"rest_end_time": 46800,
"allow_rest": false
}
],
"limit_aheadtime": 14400000,
"noneed_offwork": false,
"limit_offtime": 14400,
"flex_on_duty_time": 0,
"flex_off_duty_time": 0,
"allow_flex": false,
"late_rule": {
"allow_offwork_after_time": false,
"timerules": [
{
"offwork_after_time": 3600,
"onwork_flex_time": 3600
}
]
},
"max_allow_arrive_early": 0,
"max_allow_arrive_late": 0
}
]
}
}
]
}

View File

@@ -0,0 +1,8 @@
{
"starttime": 1492617600,
"endtime": 1492790400,
"useridlist": [
"james",
"paul"
]
}

View File

@@ -0,0 +1,57 @@
{
"schedule_list": [
{
"userid": "james",
"yearmonth": 202011,
"groupid": 11,
"groupname": "排班",
"schedule": {
"scheduleList": [
{
"day": 25,
"schedule_info": {
"schedule_id": 229,
"schedule_name": "早班",
"time_section": [
{
"id": 1,
"work_sec": 32400,
"off_work_sec": 43200,
"remind_work_sec": 32400,
"remind_off_work_sec": 43200
}
]
}
},
{
"day": 26,
"schedule_info": {
"schedule_id": 171,
"schedule_name": "晚班",
"time_section": [
{
"id": 2,
"work_sec": 64800,
"off_work_sec": 79200,
"remind_work_sec": 64800,
"remind_off_work_sec": 79200
}
]
}
},
{
"day": 30,
"schedule_info": {
"schedule_id": 0,
"schedule_name": "休息",
"time_section": [
]
}
}
]
}
}
],
"errcode": 0,
"errmsg": "ok"
}

View File

@@ -0,0 +1,230 @@
{
"errcode": 0,
"errmsg": "ok",
"group": [
{
"grouptype": 1,
"groupid": 69,
"checkindate": [
{
"workdays": [
1,
2,
3,
4,
5
],
"checkintime": [
{
"work_sec": 36000,
"off_work_sec": 43200,
"remind_work_sec": 35400,
"remind_off_work_sec": 43200
},
{
"work_sec": 50400,
"off_work_sec": 72000,
"remind_work_sec": 49800,
"remind_off_work_sec": 72000
}
],
"noneed_offwork": true,
"limit_aheadtime": 10800000,
"flex_on_duty_time": 0,
"flex_off_duty_time": 0
}
],
"spe_workdays": [
{
"timestamp": 1512144000,
"notes": "必须打卡的日期",
"checkintime": [
{
"work_sec": 32400,
"off_work_sec": 61200,
"remind_work_sec": 31800,
"remind_off_work_sec": 61200
}
]
}
],
"spe_offdays": [
{
"timestamp": 1512057600,
"notes": "不需要打卡的日期",
"checkintime": []
}
],
"sync_holidays": true,
"groupname": "打卡规则1",
"need_photo": true,
"wifimac_infos": [
{
"wifiname": "Tencent-WiFi-1",
"wifimac": "c0:7b:bc:37:f8:d3"
},
{
"wifiname": "Tencent-WiFi-2",
"wifimac": "70:10:5c:7d:f6:d5"
}
],
"note_can_use_local_pic": false,
"allow_checkin_offworkday": true,
"allow_apply_offworkday": true,
"loc_infos": [
{
"lat": 30547030,
"lng": 104062890,
"loc_title": "腾讯成都大厦",
"loc_detail": "四川省成都市武侯区高新南区天府三街",
"distance": 300
},
{
"lat": 23097490,
"lng": 113323750,
"loc_title": "T.I.T创意园",
"loc_detail": "广东省广州市海珠区新港中路397号",
"distance": 300
}
],
"range": {
"partyid": [],
"userid": [ "icef", "LiJingZhong" ],
"tagid": [ 2 ]
},
"create_time": 1606204343,
"white_users": [ "canno" ],
"type": 0,
"reporterinfo": {
"reporters": [
{
"userid": "brant"
}
],
"updatetime": 1606305508
},
"ot_info": {
"type": 2,
"allow_ot_workingday": true,
"allow_ot_nonworkingday": false,
"otcheckinfo": {
"ot_workingday_time_start": 1800,
"ot_workingday_time_min": 1800,
"ot_workingday_time_max": 14400,
"ot_nonworkingday_time_min": 1800,
"ot_nonworkingday_time_max": 14400,
"ot_workingday_restinfo": {
"type": 2,
"fix_time_rule": {
"fix_time_begin_sec": 43200,
"fix_time_end_sec": 46800
},
"cal_ottime_rule": {
"items": [
{
"ot_time": 18000,
"rest_time": 3600
}
]
}
},
"ot_nonworkingday_restinfo": {
"type": 2,
"fix_time_rule": {
"fix_time_begin_sec": 43200,
"fix_time_end_sec": 46800
},
"cal_ottime_rule": {
"items": [
{
"ot_time": 18000,
"rest_time": 3600
}
]
}
},
"ot_nonworkingday_spanday_time": 0
},
"uptime": 1606275664,
"otapplyinfo": {
"allow_ot_workingday": true,
"allow_ot_nonworkingday": true,
"uptime": 1606275664,
"ot_workingday_restinfo": {
"type": 2,
"fix_time_rule": {
"fix_time_begin_sec": 43200,
"fix_time_end_sec": 46800
},
"cal_ottime_rule": {
"items": [
{
"ot_time": 18000,
"rest_time": 3600
}
]
}
},
"ot_nonworkingday_restinfo": {
"type": 2,
"fix_time_rule": {
"fix_time_begin_sec": 43200,
"fix_time_end_sec": 46800
},
"cal_ottime_rule": {
"items": [
{
"ot_time": 18000,
"rest_time": 3600
}
]
}
},
"ot_nonworkingday_spanday_time": 0
}
},
"allow_apply_bk_cnt": -1,
"option_out_range": 0,
"create_userid": "gaogao",
"use_face_detect": false,
"allow_apply_bk_day_limit": -1,
"update_userid": "sandy",
"schedulelist": [
{
"schedule_id": 221,
"schedule_name": "2",
"time_section": [
{
"time_id": 1,
"work_sec": 32400,
"off_work_sec": 61200,
"remind_work_sec": 31800,
"remind_off_work_sec": 61200,
"rest_begin_time": 43200,
"rest_end_time": 46800,
"allow_rest": false
}
],
"limit_aheadtime": 14400000,
"noneed_offwork": false,
"limit_offtime": 14400,
"flex_on_duty_time": 0,
"flex_off_duty_time": 0,
"allow_flex": false,
"late_rule": {
"allow_offwork_after_time": false,
"timerules": [
{
"offwork_after_time": 3600,
"onwork_flex_time": 3600
}
]
},
"max_allow_arrive_early": 0,
"max_allow_arrive_late": 0
}
],
"offwork_interval_time": 300
}
]
}

View File

@@ -0,0 +1,11 @@
{
"groupid": 226,
"items": [
{
"userid": "james",
"day": 5,
"schedule_id": 234
}
],
"yearmonth": 202012
}