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
b286b8b2
Commit
b286b8b2
authored
Aug 17, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
7123c6dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
4 deletions
+75
-4
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+75
-4
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
b286b8b2
...
...
@@ -2814,9 +2814,9 @@ public class ClockInController {
}
else
{
KqglAssoBcsz
shif
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
ash
.
getId
()));
String
xbdk1
=
(
str
+
" "
+
shif
.
getXbdk1
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);
Timestamp
a
=
Timestamp
.
valueOf
(
xbdk1
);
Timestamp
a
=
Timestamp
.
valueOf
(
xbdk1
);
//下班
String
sbdk1
=
(
str
+
" "
+
shif
.
getSbdk1
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);
Timestamp
c
=
Timestamp
.
valueOf
(
sbdk1
);
Timestamp
c
=
Timestamp
.
valueOf
(
sbdk1
);
//上班
if
(
r
==
1
)
{
if
(
b
.
after
(
a
)
&&
b
.
after
(
c
))
{
// 当前时间大于下班打卡时间
...
...
@@ -3089,23 +3089,94 @@ public class ClockInController {
}
}
//当天最后一个班打完后 打卡按钮全部不显示
//当天最后一个班打完后 打卡按钮全部不显示
(没打卡的显示缺卡)
boolean
isdkjj
=
true
;
if
(
attdate
.
getAttsch
().
size
()
==
2
)
{
if
(
attsch
.
get
(
1
).
getDajl
().
getId
()
!=
null
&&
attsch
.
get
(
1
).
getDajl
().
getDktime
()
!=
null
)
{
isdkjj
=
false
;
if
(
attsch
.
get
(
0
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
0
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
0
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
0
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
0
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
0
).
getSort
());
attsch
.
get
(
0
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
0
).
setIsdk
(
1
);
}
}
}
else
if
(
attdate
.
getAttsch
().
size
()
==
4
)
{
if
(
attsch
.
get
(
3
).
getDajl
().
getId
()
!=
null
&&
attsch
.
get
(
3
).
getDajl
().
getDktime
()
!=
null
)
{
isdkjj
=
false
;
if
(
attsch
.
get
(
0
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
0
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
0
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
0
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
0
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
0
).
getSort
());
attsch
.
get
(
0
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
0
).
setIsdk
(
1
);
}
if
(
attsch
.
get
(
1
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
1
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
1
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
1
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
1
).
getSort
());
attsch
.
get
(
1
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
1
).
setIsdk
(
1
);
}
if
(
attsch
.
get
(
2
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
2
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
2
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
2
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
2
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
2
).
getSort
());
attsch
.
get
(
2
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
2
).
setIsdk
(
1
);
}
}
}
else
if
(
attdate
.
getAttsch
().
size
()
==
6
)
{
if
(
attsch
.
get
(
5
).
getDajl
().
getId
()
!=
null
&&
attsch
.
get
(
5
).
getDajl
().
getDktime
()
!=
null
)
{
isdkjj
=
false
;
if
(
attsch
.
get
(
0
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
0
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
0
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
0
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
0
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
0
).
getSort
());
attsch
.
get
(
0
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
0
).
setIsdk
(
1
);
}
if
(
attsch
.
get
(
1
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
1
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
1
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
1
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
1
).
getSort
());
attsch
.
get
(
1
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
1
).
setIsdk
(
1
);
}
if
(
attsch
.
get
(
2
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
2
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
2
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
2
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
2
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
2
).
getSort
());
attsch
.
get
(
2
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
2
).
setIsdk
(
1
);
}
if
(
attsch
.
get
(
3
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
3
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
3
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
3
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
3
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
3
).
getSort
());
attsch
.
get
(
3
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
3
).
setIsdk
(
1
);
}
if
(
attsch
.
get
(
4
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
4
).
getDajl
().
getDktime
()
==
null
)
{
attsch
.
get
(
4
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
4
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
4
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
4
).
getSort
());
attsch
.
get
(
4
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
4
).
setIsdk
(
1
);
}
}
}
System
.
out
.
println
(
attsch
.
get
(
attdate
.
getAttsch
().
size
()-
1
).
getTime
());
//
System.out.println(attsch.get(attdate.getAttsch().size()-1).getTime());
//全部为 1 时 iscrdk
if
(
bccs
==
bc
&&
b
.
before
(
d
)
&&
lcdkgb
&&
isdkjj
)
{
...
...
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