3 Star 0 Fork 1

戴翔宇/1920中级实践小组作业

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
中级实践例子.txt 4.83 KB
一键复制 编辑 原始数据 按行查看 历史
dxytw89 提交于 2020-06-10 21:50 . update 中级实践例子.txt
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}
(测试完成后,刷新数据库验证)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dxytw89/tjuMidGroupProject.git
git@gitee.com:dxytw89/tjuMidGroupProject.git
dxytw89
tjuMidGroupProject
1920中级实践小组作业
master

搜索帮助