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
65bff060
Commit
65bff060
authored
Aug 10, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
5d1d66d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
47 deletions
+50
-47
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+50
-47
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
65bff060
...
...
@@ -2595,61 +2595,64 @@ public class ClockInController {
List
<
AttSchedule
>
beforeattsch
=
beforeattdate
.
getAttsch
();
int
p
=
0
;
for
(
AttSchedule
befo
:
beforeattsch
)
{
boolean
isdkjl
=
true
;
if
(
befo
.
getNextday
()
==
1
)
{
cr
++;
AttSchedule
attschbefo
=
AttSchedule
.
builder
().
build
();
BeanUtil
.
copyProperties
(
befo
,
attschbefo
,
"nextdaycard"
,
"dajl"
);
attschbefo
.
setNextdaycard
(
1
);
attschbefo
.
setNextday
(
2
);
//昨日
KqglAssoDkjl
dkjlbefo
=
KqglAssoDkjl
.
builder
().
build
();
for
(
KqglAssoDkjl
ka
:
dajllistbefo
)
{
if
(
befo
.
getId
()
==
ka
.
getBcid
()
&&
befo
.
getSort
()
==
ka
.
getSort
())
{
//班次id和打卡顺序对应
BeanUtil
.
copyProperties
(
ka
,
dkjlbefo
,
"attdate"
,
"remarks"
,
"userId"
,
"attime"
,
"dkmxid"
,
"commentary"
,
"punchequipment"
,
"punchmode"
);
isdkjl
=
false
;
if
(
EmptyUtil
.
isNotEmpty
(
beforeattdate
.
getAttsch
())
&&
beforeattsch
.
get
(
0
).
getId
()
!=
0
)
{
for
(
AttSchedule
befo
:
beforeattsch
)
{
boolean
isdkjl
=
true
;
if
(
befo
.
getNextday
()
==
1
)
{
cr
++;
AttSchedule
attschbefo
=
AttSchedule
.
builder
().
build
();
BeanUtil
.
copyProperties
(
befo
,
attschbefo
,
"nextdaycard"
,
"dajl"
);
attschbefo
.
setNextdaycard
(
1
);
attschbefo
.
setNextday
(
2
);
//昨日
KqglAssoDkjl
dkjlbefo
=
KqglAssoDkjl
.
builder
().
build
();
for
(
KqglAssoDkjl
ka
:
dajllistbefo
)
{
if
(
befo
.
getId
()
==
ka
.
getBcid
()
&&
befo
.
getSort
()
==
ka
.
getSort
())
{
//班次id和打卡顺序对应
BeanUtil
.
copyProperties
(
ka
,
dkjlbefo
,
"attdate"
,
"remarks"
,
"userId"
,
"attime"
,
"dkmxid"
,
"commentary"
,
"punchequipment"
,
"punchmode"
);
isdkjl
=
false
;
}
}
}
if
(
dkjlbefo
.
getDktime
()
!=
null
)
{
bc
++;
attschbefo
.
setIsdk
(
1
);
}
else
{
attschbefo
.
setIsdk
(
0
);
}
if
(
beforeattdate
.
getAttsch
().
size
()
==
2
)
{
}
else
{
boolean
ectivedate
=
ClockInTool
.
hourMinuteBetween
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
nowdate
),
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
befo
.
getStarttime
()),
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
befo
.
getEndtime
()),
"yyyy-MM-dd HH:mm"
);
if
(
ectivedate
)
{
if
(
isdkjl
)
{
bsz
=
1
;
attschbefo
.
setIsdk
(
0
);
}
}
else
{
if
(
dkjlbefo
.
getDktime
()
!=
null
)
{
bc
++;
attschbefo
.
setIsdk
(
1
);
}
else
{
attschbefo
.
setIsdk
(
0
);
}
if
(
beforeattdate
.
getAttsch
().
size
()
==
2
)
{
}
else
{
boolean
ectivedate
=
ClockInTool
.
hourMinuteBetween
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
nowdate
),
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
befo
.
getStarttime
()),
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
befo
.
getEndtime
()),
"yyyy-MM-dd HH:mm"
);
if
(
ectivedate
)
{
if
(
isdkjl
)
{
bsz
=
1
;
attschbefo
.
setIsdk
(
0
);
}
}
else
{
bc
++;
attschbefo
.
setIsdk
(
1
);
}
}
Timestamp
tt
=
Timestamp
.
valueOf
(
ClockInTool
.
stampToDate
(
String
.
valueOf
(
befo
.
getTime
())));
if
(
attschbefo
.
getIsdk
()
==
1
&&
b
.
after
(
tt
))
{
dkjlbefo
.
setStatus
(
17
);
//缺卡
dkjlbefo
.
setSort
(
befo
.
getSort
());
dkjlbefo
.
setId
(
888
);
//更新打卡关闭
attschbefo
.
setIsupdate
(
0
);
}
attschbefo
.
setDajl
(
dkjlbefo
);
attsch
.
add
(
p
,
attschbefo
);
p
++;
}
Timestamp
tt
=
Timestamp
.
valueOf
(
ClockInTool
.
stampToDate
(
String
.
valueOf
(
befo
.
getTime
())));
if
(
attschbefo
.
getIsdk
()
==
1
&&
b
.
after
(
tt
))
{
dkjlbefo
.
setStatus
(
17
);
//缺卡
dkjlbefo
.
setSort
(
befo
.
getSort
());
dkjlbefo
.
setId
(
888
);
//更新打卡关闭
attschbefo
.
setIsupdate
(
0
);
}
attschbefo
.
setDajl
(
dkjlbefo
);
attsch
.
add
(
p
,
attschbefo
);
p
++;
}
}
}
/****************次日结束***************/
...
...
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