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
b6c06db4
Commit
b6c06db4
authored
Aug 12, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交 See merge request 8timerv2/8timerapiv200!415
parents
8d3d76ca
ba2f738a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
7 deletions
+34
-7
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+34
-7
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
b6c06db4
...
@@ -2568,18 +2568,31 @@ public class ClockInController {
...
@@ -2568,18 +2568,31 @@ public class ClockInController {
int
bsz
=
0
;
int
bsz
=
0
;
int
cr
=
0
;
int
cr
=
0
;
boolean
iscrdk
=
true
;
boolean
iscrdk
=
true
;
String
crlasttime
=
null
;
//次日最后打卡时间
/****************次日开始***************/
/****************次日开始***************/
int
sb1
=
0
,
xb1
=
0
,
sb2
=
0
,
xb2
=
0
,
sb3
=
0
,
xb3
=
0
;
int
sb1
=
0
,
xb1
=
0
,
sb2
=
0
,
xb2
=
0
,
sb3
=
0
,
xb3
=
0
;
//先判断前一天是否存在次日打卡的方式
//先判断前一天是否存在次日打卡的方式
KqglAssoBcsz
jianchashif
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
attsch
.
get
(
0
).
getId
()));
KqglAssoBcsz
jianchashif
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
attsch
.
get
(
0
).
getId
()));
if
(
jianchashif
.
getIsSbdk1Cr
()
==
1
)
{
sb1
=
1
;
}
if
(
jianchashif
.
getIsSbdk1Cr
()
==
1
)
{
if
(
jianchashif
.
getIsXbdk1Cr
()
==
1
)
{
xb1
=
1
;
}
sb1
=
1
;
if
(
jianchashif
.
getIsSbdk2Cr
()
==
1
)
{
sb2
=
1
;
}
crlasttime
=
(
str
+
" "
+
jianchashif
.
getSbdk1
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);}
if
(
jianchashif
.
getIsXbdk2Cr
()
==
1
)
{
xb2
=
1
;
}
if
(
jianchashif
.
getIsXbdk1Cr
()
==
1
)
{
if
(
jianchashif
.
getIsSbdk3Cr
()
==
1
)
{
sb3
=
1
;
}
xb1
=
1
;
if
(
jianchashif
.
getIsXbdk3Cr
()
==
1
)
{
xb3
=
1
;
}
crlasttime
=
(
str
+
" "
+
jianchashif
.
getXbdk1
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);}
if
(
jianchashif
.
getIsSbdk2Cr
()
==
1
)
{
sb2
=
1
;
crlasttime
=
(
str
+
" "
+
jianchashif
.
getSbdk2
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);}
if
(
jianchashif
.
getIsXbdk2Cr
()
==
1
)
{
xb2
=
1
;
crlasttime
=
(
str
+
" "
+
jianchashif
.
getXbdk2
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);}
if
(
jianchashif
.
getIsSbdk3Cr
()
==
1
)
{
sb3
=
1
;
crlasttime
=
(
str
+
" "
+
jianchashif
.
getSbdk3
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);}
if
(
jianchashif
.
getIsXbdk3Cr
()
==
1
)
{
xb3
=
1
;
crlasttime
=
(
str
+
" "
+
jianchashif
.
getXbdk3
()+
":00"
).
replaceAll
(
"\r|\n"
,
""
);}
//
//
if
(
sb1
==
1
||
xb1
==
1
||
sb2
==
1
||
xb2
==
1
||
sb3
==
1
||
xb3
==
1
)
{
if
(
sb1
==
1
||
xb1
==
1
||
sb2
==
1
||
xb2
==
1
||
sb3
==
1
||
xb3
==
1
)
{
//前一天的班次
//前一天的班次
AttendanceCardListDto
beforeattdate
=
MethodCall
(
userBean
.
getOrgCode
(),
userBean
.
getEmpNum
(),
yesterday
);
AttendanceCardListDto
beforeattdate
=
MethodCall
(
userBean
.
getOrgCode
(),
userBean
.
getEmpNum
(),
yesterday
);
//前一天的打卡数据
//前一天的打卡数据
...
@@ -3031,11 +3044,25 @@ public class ClockInController {
...
@@ -3031,11 +3044,25 @@ public class ClockInController {
}
else
{
}
else
{
if
(
iscrdk
)
{
if
(
iscrdk
)
{
AttSchedule
attc
=
attsch
.
get
(
0
);
AttSchedule
attc
=
attsch
.
get
(
0
);
if
(
attc
.
getDajl
().
getStatus
()
==
17
&&
attc
.
getDajl
().
getId
()
==
888
)
{
attc
.
getDajl
().
setId
(
null
);
attc
.
getDajl
().
setSort
(
null
);
attc
.
getDajl
().
setStatus
(
null
);
}
attc
.
setIsdk
(
0
);
}
else
{
if
(
crlasttime
!=
null
)
{
Timestamp
dd
=
Timestamp
.
valueOf
(
crlasttime
);
if
(
dd
.
after
(
b
))
{
//after:大于 before:小于
AttSchedule
attc
=
attsch
.
get
(
0
);
attc
.
setIsdk
(
0
);
attc
.
setIsdk
(
0
);
}
else
{
}
else
{
AttSchedule
attc
=
attsch
.
get
(
cr
);
AttSchedule
attc
=
attsch
.
get
(
cr
);
attc
.
setIsdk
(
0
);
attc
.
setIsdk
(
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