代码拉取完成,页面将自动刷新
GET
1.根据id获取某一员工出勤记录 localhost:8080/attendance/Emp/{empNo}
2.查询所有人的出勤记录 localhost:8080/attendance/getAll
3.按照时间查询考勤表 localhost:8080/view/date/{fromDate}/{endDate}
4.员工查询自己的打卡记录 localhost:8080/attendance/Emp/{empNo}
5.获得所有员工的状态 localhost:8080/user/getAllState
6.登录 localhost:8080/login/{empNo}/{password}
7.员工查询自己所有的请假记录 localhost:8080/leave/{empNo}
8.根据id查询请假记录详情 localhost:8080/leaveDetail/{id}
9.查询所有员工的请假记录 localhost:8080/leave/{fromDate}/{endDate}
10.员工查询自己的外出记录 localhost:8080/out/{empNo}
11.根据id查询外出记录详情 localhost:8080/outDetail/{id}
PUT
1.修改请假申请:
{
"id": 4,
"emp_no": 4,
"emp_name": "戴翔宇",
"start_time": "2020-06-01 11:16:42",
"end_time": "2020-06-02 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}
2.项目经理审批请假申请
{
"id": 4,
"emp_no": 4,
"emp_name": "戴翔宇",
"type":5,
"start_time": "2020-06-01 11:16:42",
"end_time": "2020-06-02 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,使用localhost:8080/leave/{empNo}进行验证)
3. 副经理审批请假申请
{
"id": 4,
"emp_no": 4,
"emp_name": "戴翔宇",
"type":5,
"start_time": "2020-06-01 11:16:42",
"end_time": "2020-06-02 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,使用localhost:8080/leave/{empNo}进行验证)
4.总经理审批请假申请
{
"id": 4,
"emp_no": 4,
"emp_name": "戴翔宇",
"type":5,
"start_time": "2020-06-01 11:16:42",
"end_time": "2020-06-02 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,使用localhost:8080/leave/{empNo}进行验证)
5. 修改外出申请
{
"id": 1,
"emp_no": 3,
"start_time": "2020-06-03 11:16:42",
"end_time": "2020-06-05 11:16:48",
"reason": "外出",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false,
"emp_name": "邹锋"
}(测试完成后,使用localhost:8080/out/{empNo}进行验证)
6.项目经理审批请假申请
{
"id": 4,
"emp_no": 4,
"emp_name": "戴翔宇",
"type":5,
"start_time": "2020-06-01 11:16:42",
"end_time": "2020-06-02 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,使用localhost:8080/out/{empNo}进行验证)
7. 副经理审批请假申请
{
"id": 4,
"emp_no": 4,
"emp_name": "戴翔宇",
"type":5,
"start_time": "2020-06-01 11:16:42",
"end_time": "2020-06-02 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,使用localhost:8080/out/{empNo}进行验证)
8.总经理审批请假申请
{
"id": 4,
"emp_no": 4,
"emp_name": "戴翔宇",
"type":5,
"start_time": "2020-06-01 11:16:42",
"end_time": "2020-06-02 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,使用localhost:8080/out/{empNo}进行验证)
POST
1.员工提交请假申请
{
"emp_no": 3,
"type": 5,
"emp_name": "邹锋",
"start_time": "2020-06-03 11:16:42",
"end_time": "2020-06-05 11:16:48",
"reason": "生孩子",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,刷新数据库验证)
2.外出申请
{
"emp_no": 4,
"emp_name": "戴翔宇",
"start_time": "2020-06-03 11:16:42",
"end_time": "2020-06-05 11:16:48",
"reason": "外出",
"state": true,
"division_manager_state": true,
"vice_manager_state": false,
"manager_state": false
}(测试完成后,刷新数据库验证)
DELETE
1. 删除请假申请
localhost:8080/leave/{id}
(测试完成后,刷新数据库验证)
2. 删除外出申请
localhost:8080/out/{id}
(测试完成后,刷新数据库验证)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。