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
475bd596
Commit
475bd596
authored
Aug 17, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交 See merge request 8timerv2/8timerapiv200!442
parents
34a492ec
7b7d3304
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
6 deletions
+61
-6
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+61
-6
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
475bd596
...
...
@@ -2754,6 +2754,12 @@ public class ClockInController {
int
r
=
1
;
// int bc = 0;
// int bsz = 0;
boolean
dk1
=
true
;
//上
boolean
dk2
=
true
;
//下
boolean
dk3
=
true
;
boolean
dk4
=
true
;
boolean
dk5
=
true
;
boolean
dk6
=
true
;
for
(
AttSchedule
ash
:
attsch
)
{
if
(
ash
.
getNextdaycard
()
==
0
)
{
if
(
attdate
.
getAttsch
().
size
()
==
2
)
{
...
...
@@ -2768,6 +2774,7 @@ public class ClockInController {
bsz
=
1
;
ash
.
setIsdk
(
0
);
}
else
{
dk1
=
false
;
bc
++;
ash
.
setIsdk
(
1
);
...
...
@@ -2786,6 +2793,7 @@ public class ClockInController {
bsz
=
1
;
ash
.
setIsdk
(
0
);
}
else
{
dk2
=
false
;
bc
++;
ash
.
setIsdk
(
1
);
...
...
@@ -2859,6 +2867,25 @@ public class ClockInController {
}
else
{
bc
++;
ash
.
setIsdk
(
1
);
if
(
ash
.
getSort
()
==
1
)
{
dk1
=
false
;
}
if
(
ash
.
getSort
()
==
2
)
{
dk2
=
false
;
}
if
(
ash
.
getSort
()
==
3
)
{
dk3
=
false
;
}
if
(
ash
.
getSort
()
==
4
)
{
dk4
=
false
;
}
if
(
ash
.
getSort
()
==
5
)
{
dk5
=
false
;
}
if
(
ash
.
getSort
()
==
6
)
{
dk6
=
false
;
}
}
//是否请假
...
...
@@ -3203,13 +3230,41 @@ public class ClockInController {
}
else
{
if
(
iscrdk
)
{
AttSchedule
attc
=
attsch
.
get
(
0
);
if
(
attc
.
getDajl
().
getId
()
!=
null
&&
attc
.
getDajl
().
getStatus
()
==
17
&&
attc
.
getDajl
().
getId
()
==
888
)
{
attc
.
getDajl
().
setId
(
null
);
attc
.
getDajl
().
setSort
(
null
);
attc
.
getDajl
().
setStatus
(
null
);
if
(
attdate
.
getAttsch
().
size
()
==
2
)
{
AttSchedule
attc
=
attsch
.
get
(
0
);
AttSchedule
attcto
=
attsch
.
get
(
1
);
Timestamp
tt1
=
Timestamp
.
valueOf
(
ClockInTool
.
stampToDate
(
String
.
valueOf
(
attsch
.
get
(
0
).
getTime
())));
Timestamp
tt2
=
Timestamp
.
valueOf
(
ClockInTool
.
stampToDate
(
String
.
valueOf
(
attsch
.
get
(
1
).
getTime
())));
if
(!
dk1
&&
dk2
)
{
attc
.
getDajl
().
setStatus
(
17
);
//缺卡
attc
.
getDajl
().
setSort
(
attc
.
getSort
());
attc
.
getDajl
().
setId
(
888
);
attc
.
setIsdk
(
1
);
}
if
(!
dk1
&&
!
dk2
&&
b
.
after
(
tt1
)
&&
b
.
before
(
tt2
))
{
attcto
.
getDajl
().
setStatus
(
null
);
//缺卡
attcto
.
getDajl
().
setSort
(
null
);
attcto
.
getDajl
().
setId
(
null
);
attcto
.
setIsdk
(
0
);
}
if
(!
dk1
&&
!
dk2
&&
b
.
after
(
tt1
)
&&
b
.
after
(
tt2
))
{
attcto
.
getDajl
().
setStatus
(
17
);
//缺卡
attcto
.
getDajl
().
setSort
(
attc
.
getSort
());
attcto
.
getDajl
().
setId
(
888
);
attcto
.
setIsdk
(
1
);
}
}
else
if
(
attdate
.
getAttsch
().
size
()
==
4
)
{
AttSchedule
attc
=
attsch
.
get
(
0
);
if
(
attc
.
getDajl
().
getId
()
!=
null
&&
attc
.
getDajl
().
getStatus
()
==
17
&&
attc
.
getDajl
().
getId
()
==
888
)
{
attc
.
getDajl
().
setId
(
null
);
attc
.
getDajl
().
setSort
(
null
);
attc
.
getDajl
().
setStatus
(
null
);
}
attc
.
setIsdk
(
0
);
}
attc
.
setIsdk
(
0
);
}
else
{
if
(
crlasttime
!=
null
)
{
Timestamp
dd
=
Timestamp
.
valueOf
(
crlasttime
);
...
...
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