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
d46ce47e
Commit
d46ce47e
authored
Jul 16, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交 See merge request 8timerv2/8timerapiv200!329
parents
b17eb6a6
adb176cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+7
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
d46ce47e
...
@@ -799,10 +799,12 @@ public class ClockInController {
...
@@ -799,10 +799,12 @@ public class ClockInController {
}
else
{
}
else
{
msg
=
"当前打卡时间不在范围内"
;
msg
=
"当前打卡时间不在范围内"
;
sbyf
=
0
;
sbyf
=
0
;
status_
=
2
;
}
}
}
else
{
}
else
{
msg
=
"当前是休息时间"
;
msg
=
"当前是休息时间"
;
sbyf
=
0
;
sbyf
=
0
;
status_
=
2
;
}
}
}
}
}
}
...
@@ -847,6 +849,7 @@ public class ClockInController {
...
@@ -847,6 +849,7 @@ public class ClockInController {
if
(
zysd1
.
after
(
zysd2
))
{
//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
if
(
zysd1
.
after
(
zysd2
))
{
//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
msg
=
"自由工时:上班打卡后"
+
canpunchworkdate
+
"小时后,才可打下班卡"
;
msg
=
"自由工时:上班打卡后"
+
canpunchworkdate
+
"小时后,才可打下班卡"
;
sbyf
=
0
;
sbyf
=
0
;
status_
=
2
;
}
else
{
}
else
{
zypcd
.
setId
(
zydkmc
.
getId
());
zypcd
.
setId
(
zydkmc
.
getId
());
zypcd
.
setXbdk1
(
time_
);
//下班1打卡时间
zypcd
.
setXbdk1
(
time_
);
//下班1打卡时间
...
@@ -871,6 +874,7 @@ public class ClockInController {
...
@@ -871,6 +874,7 @@ public class ClockInController {
if
(
zysd1
.
after
(
zysd2
))
{
//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
if
(
zysd1
.
after
(
zysd2
))
{
//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
msg
=
"自由工时:上班打卡后"
+
canpunchworkdate
+
"小时后,才可打下班卡"
;
msg
=
"自由工时:上班打卡后"
+
canpunchworkdate
+
"小时后,才可打下班卡"
;
sbyf
=
0
;
sbyf
=
0
;
status_
=
2
;
}
else
{
}
else
{
zypcd
.
setId
(
zydkmc
.
getId
());
zypcd
.
setId
(
zydkmc
.
getId
());
zypcd
.
setXbdk2
(
time_
);
//下班1打卡时间
zypcd
.
setXbdk2
(
time_
);
//下班1打卡时间
...
@@ -901,6 +905,7 @@ public class ClockInController {
...
@@ -901,6 +905,7 @@ public class ClockInController {
if
(
zysd1
.
after
(
zysd2
))
{
//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
if
(
zysd1
.
after
(
zysd2
))
{
//当zysd1大于zysd2时,返回TRUE,当小于等于时,返回false;
msg
=
"自由工时:上班打卡后"
+
canpunchworkdate
+
"小时后,才可打下班卡"
;
msg
=
"自由工时:上班打卡后"
+
canpunchworkdate
+
"小时后,才可打下班卡"
;
sbyf
=
0
;
sbyf
=
0
;
status_
=
2
;
}
else
{
}
else
{
zypcd
.
setId
(
zydkmc
.
getId
());
zypcd
.
setId
(
zydkmc
.
getId
());
zypcd
.
setXbdk3
(
time_
);
//下班1打卡时间
zypcd
.
setXbdk3
(
time_
);
//下班1打卡时间
...
@@ -924,6 +929,7 @@ public class ClockInController {
...
@@ -924,6 +929,7 @@ public class ClockInController {
}
else
{
}
else
{
msg
=
"未检测到考勤机"
;
msg
=
"未检测到考勤机"
;
sbyf
=
0
;
sbyf
=
0
;
status_
=
2
;
}
}
/*****************************************************************************************************************************************************************************************************/
/*****************************************************************************************************************************************************************************************************/
...
@@ -940,6 +946,7 @@ public class ClockInController {
...
@@ -940,6 +946,7 @@ public class ClockInController {
KqglAssoDkjl
.
builder
().
id
(
dkjj
.
getId
()).
status
(
0
).
sort
(
0
).
build
().
updateById
();
KqglAssoDkjl
.
builder
().
id
(
dkjj
.
getId
()).
status
(
0
).
sort
(
0
).
build
().
updateById
();
msg
=
"打卡已更新数据"
;
msg
=
"打卡已更新数据"
;
sbyf
=
0
;
sbyf
=
0
;
status_
=
2
;
}
}
int
results
=
0
;
int
results
=
0
;
...
...
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