Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
6eda3847
Commit
6eda3847
authored
May 06, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试接口
parent
4bc93c36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
0 deletions
+113
-0
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+72
-0
src/main/java/cn/timer/api/dto/kqgl/CompensateDto.java
+20
-0
src/main/java/cn/timer/api/dto/kqgl/LeaveTypeDto.java
+21
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
0 → 100644
View file @
6eda3847
package
cn
.
timer
.
api
.
controller
.
kqgl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
cn.timer.api.dto.kqgl.CompensateDto
;
import
cn.timer.api.dto.kqgl.LeaveTypeDto
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
@Api
(
tags
=
"3.0考勤模块"
)
@RestController
@Transactional
@RequestMapping
(
value
=
"/kqmk"
,
produces
=
{
"application/json"
,
"multipart/form-data"
})
public
class
TimeCardController
{
/**
* 查询列表-假期规则
*/
@GetMapping
(
value
=
"/list_leave_rules"
)
@ApiOperation
(
value
=
"1: 查询列表-假期规则"
,
httpMethod
=
"GET"
,
notes
=
" 查询列表-假期规则"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
selectListLeaveRules
()
{
List
<
LeaveTypeDto
>
leas
=
new
ArrayList
<
LeaveTypeDto
>();
LeaveTypeDto
lea
=
LeaveTypeDto
.
builder
().
build
();
lea
.
setVacid
(
1
);
lea
.
setVacname
(
"事假"
);
leas
.
add
(
lea
);
LeaveTypeDto
lea2
=
LeaveTypeDto
.
builder
().
build
();
lea2
.
setVacid
(
2
);
lea2
.
setVacname
(
"调休"
);
leas
.
add
(
lea2
);
LeaveTypeDto
lea3
=
LeaveTypeDto
.
builder
().
build
();
lea3
.
setVacid
(
3
);
lea3
.
setVacname
(
"病假"
);
leas
.
add
(
lea3
);
return
ResultUtil
.
data
(
leas
,
"操作成功!"
);
}
/**
* 查询列表-加班补偿方式
*/
@GetMapping
(
value
=
"/list_compensate"
)
@ApiOperation
(
value
=
"2: 查询列表-加班补偿方式"
,
httpMethod
=
"GET"
,
notes
=
" 查询列表-加班补偿方式"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
selectListCompensate
()
{
List
<
CompensateDto
>
coms
=
new
ArrayList
<
CompensateDto
>();
CompensateDto
com
=
CompensateDto
.
builder
().
build
();
com
.
setOvtiid
(
1
);
com
.
setOvtiname
(
"加班费"
);
coms
.
add
(
com
);
CompensateDto
coms2
=
CompensateDto
.
builder
().
build
();
coms2
.
setOvtiid
(
2
);
coms2
.
setOvtiname
(
"调休"
);
coms
.
add
(
coms2
);
return
ResultUtil
.
data
(
coms
,
"操作成功!"
);
}
}
src/main/java/cn/timer/api/dto/kqgl/CompensateDto.java
0 → 100644
View file @
6eda3847
package
cn
.
timer
.
api
.
dto
.
kqgl
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
CompensateDto
{
@ApiModelProperty
(
value
=
"加班补偿记录id"
,
example
=
"1"
,
required
=
true
)
private
Integer
ovtiid
;
@ApiModelProperty
(
value
=
"加班补偿名称"
,
example
=
"加班费、调休"
)
private
String
ovtiname
;
}
src/main/java/cn/timer/api/dto/kqgl/LeaveTypeDto.java
0 → 100644
View file @
6eda3847
package
cn
.
timer
.
api
.
dto
.
kqgl
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
LeaveTypeDto
{
@ApiModelProperty
(
value
=
"假期记录id"
,
example
=
"1"
,
required
=
true
)
private
Integer
vacid
;
@ApiModelProperty
(
value
=
"假期名称"
,
example
=
"事假、调休..."
)
private
String
vacname
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment