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
8581843c
Commit
8581843c
authored
Jul 10, 2020
by
lal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
49cebe58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+24
-11
src/main/java/cn/timer/api/dto/kqmk/AttSchedule.java
+1
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
8581843c
...
@@ -2150,7 +2150,7 @@ public class ClockInController {
...
@@ -2150,7 +2150,7 @@ public class ClockInController {
// attdate.setAttpr(dajllist);
// attdate.setAttpr(dajllist);
if
(
attdate
.
getAttgrouptype
()
!=
3
)
{
if
(
attdate
.
getAttgrouptype
()
!=
3
)
{
List
<
AttSchedule
>
attsch
=
attdate
.
getAttsch
();
List
<
AttSchedule
>
attsch
=
attdate
.
getAttsch
();
if
(
EmptyUtil
.
isNotEmpty
(
attdate
.
getAttsch
()))
{
//班次不为空
if
(
EmptyUtil
.
isNotEmpty
(
attdate
.
getAttsch
())
&&
attsch
.
get
(
0
).
getId
()
!=
0
)
{
//班次不为空
int
bccs
=
attdate
.
getAttsch
().
size
();
int
bccs
=
attdate
.
getAttsch
().
size
();
int
r
=
1
,
bc
=
0
;
int
r
=
1
,
bc
=
0
;
int
bsz
=
0
;
int
bsz
=
0
;
...
@@ -2236,9 +2236,21 @@ public class ClockInController {
...
@@ -2236,9 +2236,21 @@ public class ClockInController {
if
(
dk
!=
null
&&
attdate
.
getAttsch
().
size
()
!=
dk
.
getSort
())
{
if
(
dk
!=
null
&&
attdate
.
getAttsch
().
size
()
!=
dk
.
getSort
())
{
AttSchedule
att
=
attsch
.
get
(
dk
.
getSort
());
AttSchedule
att
=
attsch
.
get
(
dk
.
getSort
());
att
.
setIsdk
(
0
);
att
.
setIsdk
(
0
);
AttSchedule
attw
=
attsch
.
get
(
dk
.
getSort
()-
1
);
attw
.
setIsupdate
(
1
);
}
else
{
AttSchedule
attc
=
attsch
.
get
(
0
);
attc
.
setIsdk
(
0
);
}
}
}
}
}
else
{
//休息的时候
List
<
AttSchedule
>
attsch_
=
new
ArrayList
<
AttSchedule
>();
attdate
.
setAttsch
(
attsch_
);
}
}
}
else
{
}
else
{
//自由工时
//自由工时
List
<
AttSchedule
>
attsch
=
new
ArrayList
<
AttSchedule
>();
List
<
AttSchedule
>
attsch
=
new
ArrayList
<
AttSchedule
>();
...
@@ -2246,18 +2258,9 @@ public class ClockInController {
...
@@ -2246,18 +2258,9 @@ public class ClockInController {
List
<
KqglAssoDkjl
>
dajllist_
=
kqglassodkjlmapper
.
getDetailedRecordClock
(
startDate
,
endDate
,
userBean
.
getEmpNum
());
List
<
KqglAssoDkjl
>
dajllist_
=
kqglassodkjlmapper
.
getDetailedRecordClock
(
startDate
,
endDate
,
userBean
.
getEmpNum
());
KqglAssoDkjl
dkjl
=
KqglAssoDkjl
.
builder
().
build
();
KqglAssoDkjl
dkjl
=
KqglAssoDkjl
.
builder
().
build
();
if
(
dajllist_
.
size
()
==
0
)
{
if
(
dajllist_
.
size
()
>
0
)
{
KqglAssoDkjl
dkjj
=
KqglAssoDkjl
.
builder
().
build
();
AttSchedule
ast
=
AttSchedule
.
builder
().
build
();
ast
.
setId
(
0
);
ast
.
setIsdk
(
0
);
ast
.
setDajl
(
dkjj
);
attsch
.
add
(
ast
);
attdate
.
setAttsch
(
attsch
);
}
else
{
for
(
KqglAssoDkjl
ddk
:
dajllist_
)
{
for
(
KqglAssoDkjl
ddk
:
dajllist_
)
{
BeanUtil
.
copyProperties
(
ddk
,
dkjl
,
"attdate"
,
"bcid"
,
"remarks"
,
"userId"
,
"attime"
,
"dkmxid"
,
"commentary"
,
"punchequipment"
,
"punchmode"
);
BeanUtil
.
copyProperties
(
ddk
,
dkjl
,
"attdate"
,
"bcid"
,
"remarks"
,
"userId"
,
"attime"
,
"dkmxid"
,
"commentary"
,
"punchequipment"
,
"punchmode"
);
}
}
AttSchedule
ast
=
AttSchedule
.
builder
().
build
();
AttSchedule
ast
=
AttSchedule
.
builder
().
build
();
ast
.
setId
(
0
);
ast
.
setId
(
0
);
...
@@ -2267,6 +2270,13 @@ public class ClockInController {
...
@@ -2267,6 +2270,13 @@ public class ClockInController {
attdate
.
setAttsch
(
attsch
);
attdate
.
setAttsch
(
attsch
);
}
}
KqglAssoDkjl
dkjj
=
KqglAssoDkjl
.
builder
().
build
();
AttSchedule
ast
=
AttSchedule
.
builder
().
build
();
ast
.
setId
(
0
);
ast
.
setIsdk
(
0
);
ast
.
setDajl
(
dkjj
);
attsch
.
add
(
ast
);
attdate
.
setAttsch
(
attsch
);
}
}
...
@@ -2335,6 +2345,7 @@ public class ClockInController {
...
@@ -2335,6 +2345,7 @@ public class ClockInController {
if
(
attdate
.
getAttgrouptype
()
!=
3
)
{
if
(
attdate
.
getAttgrouptype
()
!=
3
)
{
List
<
AttSchedule
>
ash
=
attdate
.
getAttsch
();
List
<
AttSchedule
>
ash
=
attdate
.
getAttsch
();
if
(
EmptyUtil
.
isNotEmpty
(
attdate
.
getAttsch
())
&&
ash
.
get
(
0
).
getId
()
!=
0
)
{
KqglAssoBcsz
shif
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
ash
.
get
(
0
).
getId
()));
KqglAssoBcsz
shif
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
ash
.
get
(
0
).
getId
()));
if
(
shif
!=
null
)
{
if
(
shif
!=
null
)
{
...
@@ -2410,6 +2421,8 @@ public class ClockInController {
...
@@ -2410,6 +2421,8 @@ public class ClockInController {
}
}
}
}
}
return
ResultUtil
.
data
(
attdate
);
return
ResultUtil
.
data
(
attdate
);
}
else
{
}
else
{
...
...
src/main/java/cn/timer/api/dto/kqmk/AttSchedule.java
View file @
8581843c
...
@@ -26,6 +26,7 @@ public class AttSchedule implements Serializable{
...
@@ -26,6 +26,7 @@ public class AttSchedule implements Serializable{
private
Long
starttime
;
private
Long
starttime
;
private
Long
endtime
;
private
Long
endtime
;
private
int
isupdate
;
//是否跟新打卡
private
int
isdk
;
//0:当前打卡 1:已过打卡
private
int
isdk
;
//0:当前打卡 1:已过打卡
private
KqglAssoDkjl
dajl
;
private
KqglAssoDkjl
dajl
;
}
}
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