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
52b1c715
Commit
52b1c715
authored
4 years ago
by
ilal
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
2fca9a89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+14
-8
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
52b1c715
...
...
@@ -1705,12 +1705,12 @@ public class ClockInController {
if
(
clock
.
getType
()
==
1
)
{
if
(
clock
.
getDiffer
()
==
2
)
{
//更新打卡
//如果第二次后打卡,未超过上班时间 即为打卡失效
Date
sd1
=
df1
.
parse
(
ClockInTool
.
stampToDate
(
String
.
valueOf
(
starttime1
)));
//应打卡时间
Date
sd2
=
df1
.
parse
(
sStdIoTime
);
//打卡时间
if
(
sd1
.
after
(
sd2
))
{
//
Date sd1=df1.parse(ClockInTool.stampToDate(String.valueOf(starttime1)));//应打卡时间
//
Date sd2=df1.parse(sStdIoTime);//打卡时间
// if(sd1.after(sd2)) {//大于
sbdkkd
=
true
;
//打卡无效
// atttype = 1
;
}
atttype
=
clock
.
getType
()
;
//
}
}
}
else
if
(
clock
.
getType
()
==
2
){
if
(
dkmc
.
getSbdk1
()
!=
null
&&
dkmc
.
getXbdk1
()
==
null
){
...
...
@@ -2992,7 +2992,7 @@ public class ClockInController {
}
}
//全部为 1 时
//全部为 1 时
iscrdk
if
(
bccs
==
bc
&&
b
.
before
(
d
)
&&
lcdkgb
&&
isdkjj
)
{
KqglAssoDkjl
dk
=
KqglAssoDkjl
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoDkjl
>().
lambda
().
eq
(
KqglAssoDkjl:
:
getQyid
,
userBean
.
getOrgCode
())
.
eq
(
KqglAssoDkjl:
:
getUserId
,
userBean
.
getEmpNum
()).
ge
(
KqglAssoDkjl:
:
getDktime
,
startDate
).
le
(
KqglAssoDkjl:
:
getDktime
,
endDate
)
...
...
@@ -3006,8 +3006,14 @@ public class ClockInController {
AttSchedule
attw
=
attsch
.
get
(
dk
.
getSort
()-
1
);
attw
.
setIsupdate
(
1
);
}
else
{
AttSchedule
attc
=
attsch
.
get
(
0
);
attc
.
setIsdk
(
0
);
if
(
iscrdk
)
{
AttSchedule
attc
=
attsch
.
get
(
0
);
attc
.
setIsdk
(
0
);
}
else
{
AttSchedule
attc
=
attsch
.
get
(
cr
);
attc
.
setIsdk
(
0
);
}
}
}
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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