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
0c1d5758
Commit
0c1d5758
authored
Aug 10, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
f64cd7d0
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 @
0c1d5758
...
@@ -2595,61 +2595,64 @@ public class ClockInController {
...
@@ -2595,61 +2595,64 @@ public class ClockInController {
List
<
AttSchedule
>
beforeattsch
=
beforeattdate
.
getAttsch
();
List
<
AttSchedule
>
beforeattsch
=
beforeattdate
.
getAttsch
();
int
p
=
0
;
int
p
=
0
;
for
(
AttSchedule
befo
:
beforeattsch
)
{
if
(
EmptyUtil
.
isNotEmpty
(
beforeattdate
.
getAttsch
())
&&
beforeattsch
.
get
(
0
).
getId
()
!=
0
)
{
boolean
isdkjl
=
true
;
for
(
AttSchedule
befo
:
beforeattsch
)
{
if
(
befo
.
getNextday
()
==
1
)
{
boolean
isdkjl
=
true
;
cr
++;
if
(
befo
.
getNextday
()
==
1
)
{
AttSchedule
attschbefo
=
AttSchedule
.
builder
().
build
();
cr
++;
BeanUtil
.
copyProperties
(
befo
,
attschbefo
,
"nextdaycard"
,
"dajl"
);
AttSchedule
attschbefo
=
AttSchedule
.
builder
().
build
();
attschbefo
.
setNextdaycard
(
1
);
BeanUtil
.
copyProperties
(
befo
,
attschbefo
,
"nextdaycard"
,
"dajl"
);
attschbefo
.
setNextday
(
2
);
//昨日
attschbefo
.
setNextdaycard
(
1
);
KqglAssoDkjl
dkjlbefo
=
KqglAssoDkjl
.
builder
().
build
();
attschbefo
.
setNextday
(
2
);
//昨日
for
(
KqglAssoDkjl
ka
:
dajllistbefo
)
{
KqglAssoDkjl
dkjlbefo
=
KqglAssoDkjl
.
builder
().
build
();
if
(
befo
.
getId
()
==
ka
.
getBcid
()
&&
befo
.
getSort
()
==
ka
.
getSort
())
{
//班次id和打卡顺序对应
for
(
KqglAssoDkjl
ka
:
dajllistbefo
)
{
BeanUtil
.
copyProperties
(
ka
,
dkjlbefo
,
"attdate"
,
"remarks"
,
"userId"
,
"attime"
,
"dkmxid"
,
"commentary"
,
"punchequipment"
,
"punchmode"
);
if
(
befo
.
getId
()
==
ka
.
getBcid
()
&&
befo
.
getSort
()
==
ka
.
getSort
())
{
//班次id和打卡顺序对应
isdkjl
=
false
;
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
{
if
(
dkjlbefo
.
getDktime
()
!=
null
)
{
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
++;
bc
++;
attschbefo
.
setIsdk
(
1
);
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