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
f3038aa8
Commit
f3038aa8
authored
Jun 03, 2020
by
lal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
33f0fea6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
42 deletions
+126
-42
src/main/java/cn/timer/api/bean/kqmk/KqglAssoBcsz.java
+2
-2
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+65
-40
src/main/java/cn/timer/api/dao/kqgl/PunchRecordMapper.java
+10
-0
src/main/java/cn/timer/api/dto/kqmk/OriginalRecordDto.java
+23
-0
src/main/resources/mapping/kqgl/PunchRecordMapper.xml
+26
-0
No files found.
src/main/java/cn/timer/api/bean/kqmk/KqglAssoBcsz.java
View file @
f3038aa8
...
@@ -114,10 +114,10 @@ public class KqglAssoBcsz extends Model<KqglAssoBcsz> {
...
@@ -114,10 +114,10 @@ public class KqglAssoBcsz extends Model<KqglAssoBcsz> {
private
Integer
isXiuxi
;
private
Integer
isXiuxi
;
@ApiModelProperty
(
value
=
"休息开始时间 休息开始时间"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"休息开始时间 休息开始时间"
,
example
=
"101"
)
private
Lo
ng
startTime
;
private
Stri
ng
startTime
;
@ApiModelProperty
(
value
=
"休息结束时间 休息结束时间"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"休息结束时间 休息结束时间"
,
example
=
"101"
)
private
Lo
ng
endTime
;
private
Stri
ng
endTime
;
@ApiModelProperty
(
value
=
"上下班次数(1/2/3 最大值为3)"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"上下班次数(1/2/3 最大值为3)"
,
example
=
"101"
)
private
Integer
sxbcs
;
private
Integer
sxbcs
;
...
...
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
f3038aa8
...
@@ -99,6 +99,7 @@ import cn.timer.api.dto.kqmk.KqzAttendanceGroupSearchDto;
...
@@ -99,6 +99,7 @@ import cn.timer.api.dto.kqmk.KqzAttendanceGroupSearchDto;
import
cn.timer.api.dto.kqmk.LeaveTypeDto
;
import
cn.timer.api.dto.kqmk.LeaveTypeDto
;
import
cn.timer.api.dto.kqmk.MachinememberDto
;
import
cn.timer.api.dto.kqmk.MachinememberDto
;
import
cn.timer.api.dto.kqmk.ModifyEmployeeBalanceDto
;
import
cn.timer.api.dto.kqmk.ModifyEmployeeBalanceDto
;
import
cn.timer.api.dto.kqmk.OriginalRecordDto
;
import
cn.timer.api.dto.kqmk.SetConditionsDto
;
import
cn.timer.api.dto.kqmk.SetConditionsDto
;
import
cn.timer.api.dto.kqmk.StartTimeRestDto
;
import
cn.timer.api.dto.kqmk.StartTimeRestDto
;
import
cn.timer.api.dto.kqmk.VacationInformationDto
;
import
cn.timer.api.dto.kqmk.VacationInformationDto
;
...
@@ -1191,7 +1192,7 @@ public class TimeCardController {
...
@@ -1191,7 +1192,7 @@ public class TimeCardController {
//打卡记录
//打卡记录
@Autowired
@Autowired
private
PunchRecordMapper
punchrecord
service
;
private
PunchRecordMapper
punchrecord
mapper
;
//打卡明细表
//打卡明细表
@Autowired
@Autowired
private
PunchCardDetailsMapper
punchcarddetailsservice
;
private
PunchCardDetailsMapper
punchcarddetailsservice
;
...
@@ -1317,7 +1318,7 @@ public class TimeCardController {
...
@@ -1317,7 +1318,7 @@ public class TimeCardController {
String
[]
str
=
new
String
[
3
];
String
[]
str
=
new
String
[
3
];
for
(
int
y
=
0
;
y
<
mapucalist
.
size
();
y
++){
for
(
int
y
=
0
;
y
<
mapucalist
.
size
();
y
++){
if
(
y
==
0
){
//上班
if
(
y
==
0
){
//上班
PunchRecord
mindata
=
punchrecord
service
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchRecord
mindata
=
punchrecord
mapper
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchRecord
record
=
new
PunchRecord
();
PunchRecord
record
=
new
PunchRecord
();
record
.
setId
(
mapucalist
.
get
(
y
).
getId
());
record
.
setId
(
mapucalist
.
get
(
y
).
getId
());
Long
time
=
(
mindata
.
getDktime
()
-
sbdk1
)/
1000
/
60
;
Long
time
=
(
mindata
.
getDktime
()
-
sbdk1
)/
1000
/
60
;
...
@@ -1330,7 +1331,7 @@ public class TimeCardController {
...
@@ -1330,7 +1331,7 @@ public class TimeCardController {
}
}
record
.
setAttime
(
sbdk1
);
record
.
setAttime
(
sbdk1
);
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
}
}
if
(
y
==
1
||
y
==
2
){
if
(
y
==
1
||
y
==
2
){
PunchRecord
record
=
new
PunchRecord
();
PunchRecord
record
=
new
PunchRecord
();
...
@@ -1360,9 +1361,9 @@ public class TimeCardController {
...
@@ -1360,9 +1361,9 @@ public class TimeCardController {
str
[
1
]
=
String
.
valueOf
(
mapucalist
.
get
(
y
).
getId
());
str
[
1
]
=
String
.
valueOf
(
mapucalist
.
get
(
y
).
getId
());
}
}
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
}
}
PunchRecord
maxdata
=
punchrecord
service
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//下班
PunchRecord
maxdata
=
punchrecord
mapper
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//下班
if
(
mapucalist
.
get
(
y
).
getId
()
==
maxdata
.
getId
()){
//下班
if
(
mapucalist
.
get
(
y
).
getId
()
==
maxdata
.
getId
()){
//下班
PunchRecord
record
=
new
PunchRecord
();
PunchRecord
record
=
new
PunchRecord
();
record
.
setId
(
maxdata
.
getId
());
record
.
setId
(
maxdata
.
getId
());
...
@@ -1378,7 +1379,7 @@ public class TimeCardController {
...
@@ -1378,7 +1379,7 @@ public class TimeCardController {
record
.
setSort
(
4
);
record
.
setSort
(
4
);
record
.
setAttime
(
xbdk2
);
record
.
setAttime
(
xbdk2
);
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
str
[
2
]
=
String
.
valueOf
(
maxdata
.
getId
());
str
[
2
]
=
String
.
valueOf
(
maxdata
.
getId
());
}
}
...
@@ -1390,11 +1391,11 @@ public class TimeCardController {
...
@@ -1390,11 +1391,11 @@ public class TimeCardController {
record
.
setResults
(
0
);
// 打卡结果
record
.
setResults
(
0
);
// 打卡结果
record
.
setAttime
(
mapucalist
.
get
(
y
).
getDktime
());
//上班应打卡时间
record
.
setAttime
(
mapucalist
.
get
(
y
).
getDktime
());
//上班应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
}
}
}
}
//修改打卡明细
//修改打卡明细
PunchRecord
mindata
=
punchrecord
service
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchRecord
mindata
=
punchrecord
mapper
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchCardDetails
record
=
new
PunchCardDetails
();
PunchCardDetails
record
=
new
PunchCardDetails
();
record
.
setId
(
dkmxid
);
//需修改的明细id
record
.
setId
(
dkmxid
);
//需修改的明细id
record
.
setSbdk1
(
mindata
.
getDktime
());
record
.
setSbdk1
(
mindata
.
getDktime
());
...
@@ -1413,7 +1414,7 @@ public class TimeCardController {
...
@@ -1413,7 +1414,7 @@ public class TimeCardController {
record
.
setGzsc
(
Double
.
valueOf
(
"0"
));
record
.
setGzsc
(
Double
.
valueOf
(
"0"
));
punchcarddetailsservice
.
ModifyPunchDetails
(
record
);
punchcarddetailsservice
.
ModifyPunchDetails
(
record
);
for
(
int
t
=
0
;
t
<
str
.
length
;
t
++){
for
(
int
t
=
0
;
t
<
str
.
length
;
t
++){
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
Integer
.
valueOf
(
str
[
t
]));
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
Integer
.
valueOf
(
str
[
t
]));
//单条打卡明细
PunchCardDetails
dkmx
=
new
PunchCardDetails
();
PunchCardDetails
dkmx
=
new
PunchCardDetails
();
dkmx
.
setId
(
dkmxid
);
//需修改的明细id
dkmx
.
setId
(
dkmxid
);
//需修改的明细id
...
@@ -1447,8 +1448,8 @@ public class TimeCardController {
...
@@ -1447,8 +1448,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
sbdk1
);
//当天应打卡时间
record
.
setAttime
(
sbdk1
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
mindataone
=
punchrecord
service
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
mindataone
=
punchrecord
mapper
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchCardDetails
dan
=
new
PunchCardDetails
();
PunchCardDetails
dan
=
new
PunchCardDetails
();
dan
.
setId
(
dkmxid
);
//需修改的明细id
dan
.
setId
(
dkmxid
);
//需修改的明细id
dan
.
setSbdk1
(
mindataone
.
getDktime
());
dan
.
setSbdk1
(
mindataone
.
getDktime
());
...
@@ -1472,8 +1473,8 @@ public class TimeCardController {
...
@@ -1472,8 +1473,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
xbdk1
);
//当天应打卡时间
record
.
setAttime
(
xbdk1
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
mapucalist
.
get
(
1
).
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
mapucalist
.
get
(
1
).
getId
());
//单条打卡明细
pcd
.
setXbdk1
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk1
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk1jg
(
dtdkmx
.
getResults
());
pcd
.
setXbdk1jg
(
dtdkmx
.
getResults
());
}
}
...
@@ -1491,8 +1492,8 @@ public class TimeCardController {
...
@@ -1491,8 +1492,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
sbdk2
);
//当天应打卡时间
record
.
setAttime
(
sbdk2
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
mapucalist
.
get
(
2
).
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
mapucalist
.
get
(
2
).
getId
());
//单条打卡明细
pcd
.
setSbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setSbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setSbdk2jg
(
dtdkmx
.
getResults
());
pcd
.
setSbdk2jg
(
dtdkmx
.
getResults
());
}
}
...
@@ -1510,8 +1511,8 @@ public class TimeCardController {
...
@@ -1510,8 +1511,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
xbdk2
);
//当天应打卡时间
record
.
setAttime
(
xbdk2
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//单条打卡明细
pcd
.
setXbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk2jg
(
dtdkmx
.
getResults
());
pcd
.
setXbdk2jg
(
dtdkmx
.
getResults
());
}
}
...
@@ -1523,7 +1524,7 @@ public class TimeCardController {
...
@@ -1523,7 +1524,7 @@ public class TimeCardController {
String
[]
str
=
new
String
[
5
];
String
[]
str
=
new
String
[
5
];
for
(
int
y
=
0
;
y
<
mapucalist
.
size
();
y
++){
for
(
int
y
=
0
;
y
<
mapucalist
.
size
();
y
++){
if
(
y
==
0
){
//上班
if
(
y
==
0
){
//上班
PunchRecord
mindata
=
punchrecord
service
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchRecord
mindata
=
punchrecord
mapper
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchRecord
record
=
new
PunchRecord
();
PunchRecord
record
=
new
PunchRecord
();
record
.
setId
(
mapucalist
.
get
(
y
).
getId
());
record
.
setId
(
mapucalist
.
get
(
y
).
getId
());
Long
time
=
(
mindata
.
getDktime
()
-
sbdk1
)/
1000
/
60
;
Long
time
=
(
mindata
.
getDktime
()
-
sbdk1
)/
1000
/
60
;
...
@@ -1536,7 +1537,7 @@ public class TimeCardController {
...
@@ -1536,7 +1537,7 @@ public class TimeCardController {
}
}
record
.
setAttime
(
sbdk1
);
record
.
setAttime
(
sbdk1
);
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
}
}
if
(
y
==
1
||
y
==
2
||
y
==
3
||
y
==
4
){
if
(
y
==
1
||
y
==
2
||
y
==
3
||
y
==
4
){
PunchRecord
record
=
new
PunchRecord
();
PunchRecord
record
=
new
PunchRecord
();
...
@@ -1593,9 +1594,9 @@ public class TimeCardController {
...
@@ -1593,9 +1594,9 @@ public class TimeCardController {
}
}
}
}
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
}
}
PunchRecord
maxdata
=
punchrecord
service
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//下班
PunchRecord
maxdata
=
punchrecord
mapper
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//下班
if
(
mapucalist
.
get
(
y
).
getId
()
==
maxdata
.
getId
()){
//下班
if
(
mapucalist
.
get
(
y
).
getId
()
==
maxdata
.
getId
()){
//下班
PunchRecord
record
=
new
PunchRecord
();
PunchRecord
record
=
new
PunchRecord
();
record
.
setId
(
maxdata
.
getId
());
record
.
setId
(
maxdata
.
getId
());
...
@@ -1611,7 +1612,7 @@ public class TimeCardController {
...
@@ -1611,7 +1612,7 @@ public class TimeCardController {
record
.
setSort
(
6
);
record
.
setSort
(
6
);
record
.
setAttime
(
xbdk3
);
record
.
setAttime
(
xbdk3
);
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
str
[
4
]
=
String
.
valueOf
(
maxdata
.
getId
());
str
[
4
]
=
String
.
valueOf
(
maxdata
.
getId
());
}
}
...
@@ -1623,11 +1624,11 @@ public class TimeCardController {
...
@@ -1623,11 +1624,11 @@ public class TimeCardController {
record
.
setResults
(
0
);
// 打卡结果
record
.
setResults
(
0
);
// 打卡结果
record
.
setAttime
(
mapucalist
.
get
(
y
).
getDktime
());
//上班应打卡时间
record
.
setAttime
(
mapucalist
.
get
(
y
).
getDktime
());
//上班应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
}
}
}
}
//修改打卡明细
//修改打卡明细
PunchRecord
mindata
=
punchrecord
service
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchRecord
mindata
=
punchrecord
mapper
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchCardDetails
record
=
new
PunchCardDetails
();
PunchCardDetails
record
=
new
PunchCardDetails
();
record
.
setId
(
dkmxid
);
//需修改的明细id
record
.
setId
(
dkmxid
);
//需修改的明细id
record
.
setSbdk1
(
mindata
.
getDktime
());
record
.
setSbdk1
(
mindata
.
getDktime
());
...
@@ -1646,7 +1647,7 @@ public class TimeCardController {
...
@@ -1646,7 +1647,7 @@ public class TimeCardController {
record
.
setGzsc
(
Double
.
valueOf
(
"0"
));
record
.
setGzsc
(
Double
.
valueOf
(
"0"
));
punchcarddetailsservice
.
ModifyPunchDetails
(
record
);
punchcarddetailsservice
.
ModifyPunchDetails
(
record
);
for
(
int
t
=
0
;
t
<
str
.
length
;
t
++){
for
(
int
t
=
0
;
t
<
str
.
length
;
t
++){
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
Integer
.
valueOf
(
str
[
t
]));
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
Integer
.
valueOf
(
str
[
t
]));
//单条打卡明细
PunchCardDetails
dkmx
=
new
PunchCardDetails
();
PunchCardDetails
dkmx
=
new
PunchCardDetails
();
dkmx
.
setId
(
dkmxid
);
//需修改的明细id
dkmx
.
setId
(
dkmxid
);
//需修改的明细id
if
(
t
==
0
){
if
(
t
==
0
){
...
@@ -1685,8 +1686,8 @@ public class TimeCardController {
...
@@ -1685,8 +1686,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
sbdk1
);
//当天应打卡时间
record
.
setAttime
(
sbdk1
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
mindataone
=
punchrecord
service
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
mindataone
=
punchrecord
mapper
.
selectByPrimaryKey
(
minAttid
.
getId
());
//上班
PunchCardDetails
dan
=
new
PunchCardDetails
();
PunchCardDetails
dan
=
new
PunchCardDetails
();
dan
.
setId
(
dkmxid
);
//需修改的明细id
dan
.
setId
(
dkmxid
);
//需修改的明细id
dan
.
setSbdk1
(
mindataone
.
getDktime
());
dan
.
setSbdk1
(
mindataone
.
getDktime
());
...
@@ -1710,8 +1711,8 @@ public class TimeCardController {
...
@@ -1710,8 +1711,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
xbdk1
);
//当天应打卡时间
record
.
setAttime
(
xbdk1
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
mapucalist
.
get
(
1
).
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
mapucalist
.
get
(
1
).
getId
());
//单条打卡明细
pcd
.
setXbdk1
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk1
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk1jg
(
dtdkmx
.
getResults
());
pcd
.
setXbdk1jg
(
dtdkmx
.
getResults
());
}
}
...
@@ -1729,8 +1730,8 @@ public class TimeCardController {
...
@@ -1729,8 +1730,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
sbdk2
);
//当天应打卡时间
record
.
setAttime
(
sbdk2
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
mapucalist
.
get
(
2
).
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
mapucalist
.
get
(
2
).
getId
());
//单条打卡明细
pcd
.
setSbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setSbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setSbdk2jg
(
dtdkmx
.
getResults
());
pcd
.
setSbdk2jg
(
dtdkmx
.
getResults
());
}
}
...
@@ -1748,8 +1749,8 @@ public class TimeCardController {
...
@@ -1748,8 +1749,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
xbdk2
);
//当天应打卡时间
record
.
setAttime
(
xbdk2
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
mapucalist
.
get
(
3
).
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
mapucalist
.
get
(
3
).
getId
());
//单条打卡明细
pcd
.
setXbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk2
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk2jg
(
dtdkmx
.
getResults
());
pcd
.
setXbdk2jg
(
dtdkmx
.
getResults
());
}
}
...
@@ -1767,8 +1768,8 @@ public class TimeCardController {
...
@@ -1767,8 +1768,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
sbdk3
);
//当天应打卡时间
record
.
setAttime
(
sbdk3
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
mapucalist
.
get
(
4
).
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
mapucalist
.
get
(
4
).
getId
());
//单条打卡明细
pcd
.
setSbdk3
(
dtdkmx
.
getDktime
());
pcd
.
setSbdk3
(
dtdkmx
.
getDktime
());
pcd
.
setSbdk3jg
(
dtdkmx
.
getResults
());
pcd
.
setSbdk3jg
(
dtdkmx
.
getResults
());
...
@@ -1787,8 +1788,8 @@ public class TimeCardController {
...
@@ -1787,8 +1788,8 @@ public class TimeCardController {
}
}
record
.
setAttime
(
xbdk3
);
//当天应打卡时间
record
.
setAttime
(
xbdk3
);
//当天应打卡时间
record
.
setBcid
(
banci
.
getId
());
//班次id
record
.
setBcid
(
banci
.
getId
());
//班次id
punchrecord
service
.
updateByPrimaryKeySelective
(
record
);
punchrecord
mapper
.
updateByPrimaryKeySelective
(
record
);
PunchRecord
dtdkmx
=
punchrecord
service
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//单条打卡明细
PunchRecord
dtdkmx
=
punchrecord
mapper
.
selectByPrimaryKey
(
maxAttid
.
getId
());
//单条打卡明细
pcd
.
setXbdk3
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk3
(
dtdkmx
.
getDktime
());
pcd
.
setXbdk3jg
(
dtdkmx
.
getResults
());
pcd
.
setXbdk3jg
(
dtdkmx
.
getResults
());
}
}
...
@@ -1861,15 +1862,39 @@ public class TimeCardController {
...
@@ -1861,15 +1862,39 @@ public class TimeCardController {
@ApiOperation
(
value
=
"根据用户id和假期id查询余额具体数据"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"根据用户id和假期id查询余额具体数据"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
// @ApiOperationSupport(order = 45)
// @ApiOperationSupport(order = 45)
public
Result
<
Object
>
ModifyEmployeeBalance
(
@RequestBody
ModifyEmployeeBalanceDto
bala
)
{
public
Result
<
Object
>
ModifyEmployeeBalance
(
@RequestBody
ModifyEmployeeBalanceDto
bala
)
{
List
<
KqglAssoLeaveBalance
>
ballist
=
kqglassoleavebalancemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoLeaveBalance
>().
lambda
().
eq
(
KqglAssoLeaveBalance:
:
getLeaveRulesId
,
bala
.
getLeaverulesid
()).
eq
(
KqglAssoLeaveBalance:
:
getUserid
,
bala
.
getEmpnum
()));
return
ResultUtil
.
data
(
ballist
,
"操作成功!"
);
}
// List<KqglAssoOvertimeRange> overtim = kqglassoovertimerangemapper.selectList(new QueryWrapper<KqglAssoOvertimeRange>().lambda().eq(KqglAssoOvertimeRange::getOvertimeRulesId, listAs.get(i).getId()));
List
<
KqglAssoLeaveBalance
>
ballist
=
kqglassoleavebalancemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoLeaveBalance
>().
lambda
().
eq
(
KqglAssoLeaveBalance:
:
getLeaveRulesId
,
bala
.
getLeaverulesid
()).
eq
(
KqglAssoLeaveBalance:
:
getUserid
,
bala
.
getEmpnum
()));
/**
* 考勤原始记录-根据 模糊 + 高級查詢-分页
*/
@PostMapping
(
value
=
"/attendancecalendar"
)
@ApiOperation
(
value
=
"考勤原始记录-根据 模糊 + 高級查詢-分页"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
34
)
public
Result
<
Object
>
AttendanceCalendar
(
@CurrentUser
UserBean
userBean
,
@Validated
@RequestBody
OriginalRecordDto
originalrecorddto
){
return
ResultUtil
.
data
(
ballist
,
"操作成功!"
);
IPage
<
PunchRecord
>
page
=
new
Page
<
PunchRecord
>(
originalrecorddto
.
getCurrentPage
()
==
null
?
1
:
originalrecorddto
.
getCurrentPage
(),
originalrecorddto
.
getTotalPage
()
==
null
?
10
:
originalrecorddto
.
getTotalPage
());
originalrecorddto
.
setQyid
(
userBean
.
getOrgCode
());
IPage
<
PunchRecord
>
pageAs
=
punchrecordmapper
.
QueryOriginalRecord
(
page
,
originalrecorddto
);
List
<
PunchRecord
>
listAs
=
pageAs
.
getRecords
();
return
ResultUtil
.
data
(
pageAs
,
listAs
,
"操作成功!"
);
}
}
// @GetMapping(value = "/summary_report")
// @ApiOperation(value = "考勤汇总报表(暂时不用)", httpMethod = "GET", notes = "接口发布说明")
// public Result<Object> attendance_summary_report() {
// Map<String, Object> map = new HashMap<String, Object>();
//
// return ResultUtil.data(map);
// }
/**************************/
/**************************/
/**
/**
* 查询列表-加班补偿方式
* 查询列表-加班补偿方式
...
...
src/main/java/cn/timer/api/dao/kqgl/PunchRecordMapper.java
View file @
f3038aa8
...
@@ -2,8 +2,13 @@ package cn.timer.api.dao.kqgl;
...
@@ -2,8 +2,13 @@ package cn.timer.api.dao.kqgl;
import
java.util.List
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
cn.timer.api.bean.kqgl.AttendanceDetails
;
import
cn.timer.api.bean.kqgl.AttendanceDetails
;
import
cn.timer.api.bean.kqgl.PunchRecord
;
import
cn.timer.api.bean.kqgl.PunchRecord
;
import
cn.timer.api.dto.kqmk.OriginalRecordDto
;
public
interface
PunchRecordMapper
{
public
interface
PunchRecordMapper
{
int
deleteByPrimaryKey
(
Integer
id
);
int
deleteByPrimaryKey
(
Integer
id
);
...
@@ -31,4 +36,8 @@ public interface PunchRecordMapper {
...
@@ -31,4 +36,8 @@ public interface PunchRecordMapper {
List
<
PunchRecord
>
getMaintenancePunchCardList
(
Long
start
,
Long
end
,
Integer
userId
);
List
<
PunchRecord
>
getMaintenancePunchCardList
(
Long
start
,
Long
end
,
Integer
userId
);
List
<
PunchRecord
>
selFuzzyOriginalAttendance
(
AttendanceDetails
attendancedetails
);
List
<
PunchRecord
>
selFuzzyOriginalAttendance
(
AttendanceDetails
attendancedetails
);
IPage
<
PunchRecord
>
QueryOriginalRecord
(
IPage
<
PunchRecord
>
page
,
@Param
(
"param"
)
OriginalRecordDto
originalrecorddto
);
}
}
\ No newline at end of file
src/main/java/cn/timer/api/dto/kqmk/OriginalRecordDto.java
0 → 100644
View file @
f3038aa8
package
cn
.
timer
.
api
.
dto
.
kqmk
;
import
cn.timer.api.utils.Page
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
OriginalRecordDto
extends
Page
{
private
Integer
qyid
;
private
String
start
;
private
String
end
;
private
String
text
;
}
src/main/resources/mapping/kqgl/PunchRecordMapper.xml
View file @
f3038aa8
...
@@ -32,6 +32,32 @@
...
@@ -32,6 +32,32 @@
id, dktime, lon, lat, address, results, user_id, type, status, sort, card_type, macname,
id, dktime, lon, lat, address, results, user_id, type, status, sort, card_type, macname,
mac, qyid, attdate, attime, dkmxid,bcid,remarks,punchmode,punchequipment
mac, qyid, attdate, attime, dkmxid,bcid,remarks,punchmode,punchequipment
</sql>
</sql>
<select
id=
"QueryOriginalRecord"
resultMap=
"BaseResultMap"
>
select dkjl.*,
bmgw.dept,
bmgw.post,
info.`name` username
from kqgl_asso_dkjl dkjl
LEFT JOIN yggl_main_emp as info on info.emp_num = dkjl.user_id
LEFT JOIN (select m.name as post,um.name as dept,m.id as mid
from zzgl_bmgw_m m
left join zzgl_bmgw_m um on um.id = m.up_id
) as bmgw on bmgw.mid = info.bmgw_id
where dkjl.qyid = #{param.qyid}
<if
test=
"param.start != ''"
>
and dkjl.attime
>
= #{param.start}
</if>
<if
test=
"param.end != ''"
>
and dkjl.attime
<
= #{param.end}
</if>
<if
test=
"param.text != null and param.text != ''"
>
and (info.`name` like CONCAT('%',#{param.text},'%') or info.emp_num = #{param.text})
</if>
ORDER BY dkjl.id ASC
</select>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Integer"
>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Integer"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
...
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