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
f86e582e
Commit
f86e582e
authored
Jun 23, 2020
by
lal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
ab31c953
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+16
-14
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
f86e582e
...
@@ -1223,7 +1223,9 @@ public class TimeCardController {
...
@@ -1223,7 +1223,9 @@ public class TimeCardController {
Console
.
log
(
"新增--考勤组id: "
+
attid
);
Console
.
log
(
"新增--考勤组id: "
+
attid
);
//添加加班规则
//添加加班规则
KqglAssoOvertimeRange
.
builder
().
overtimeRulesId
(
attass
.
getOvertimeRulesId
()).
attgroupId
(
attid
).
build
().
insert
();
if
(
attass
.
getOvertimeRulesId
()
>
0
)
{
KqglAssoOvertimeRange
.
builder
().
overtimeRulesId
(
attass
.
getOvertimeRulesId
()).
attgroupId
(
attid
).
build
().
insert
();
}
List
<
KqglAssoKqzdkfs
>
kqzdkfslist
=
new
ArrayList
<
KqglAssoKqzdkfs
>();
List
<
KqglAssoKqzdkfs
>
kqzdkfslist
=
new
ArrayList
<
KqglAssoKqzdkfs
>();
String
[]
attmac
=
attass
.
getAttmachines
();
//考勤机
String
[]
attmac
=
attass
.
getAttmachines
();
//考勤机
...
@@ -2569,7 +2571,7 @@ public class TimeCardController {
...
@@ -2569,7 +2571,7 @@ public class TimeCardController {
if
(
yhd
!=
null
)
{
if
(
yhd
!=
null
)
{
KqglAssoOvertimeRange
timeran
=
KqglAssoOvertimeRange
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getAttgroupId
,
yhd
.
getKqzid
()));
KqglAssoOvertimeRange
timeran
=
KqglAssoOvertimeRange
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getAttgroupId
,
yhd
.
getKqzid
()));
if
(
timeran
!=
null
)
{
if
(
timeran
!=
null
)
{
KqglAssoOvertimeRules
rul
=
KqglAssoOvertimeRules
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoOvertimeRules
>().
lambda
().
eq
(
KqglAssoOvertimeRules:
:
getId
,
timeran
.
getOvertimeRulesId
()));
KqglAssoOvertimeRules
rul
=
KqglAssoOvertimeRules
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoOvertimeRules
>().
lambda
().
eq
(
KqglAssoOvertimeRules:
:
getId
,
timeran
.
getOvertimeRulesId
())
.
eq
(
KqglAssoOvertimeRules:
:
getOrgCode
,
userBean
.
getOrgCode
())
);
if
(
rul
!=
null
)
{
if
(
rul
!=
null
)
{
if
(
rul
.
getIsWorkovertime
()
==
1
)
{
if
(
rul
.
getIsWorkovertime
()
==
1
)
{
CompensateDto
com
=
CompensateDto
.
builder
().
build
();
CompensateDto
com
=
CompensateDto
.
builder
().
build
();
...
@@ -3090,12 +3092,12 @@ public class TimeCardController {
...
@@ -3090,12 +3092,12 @@ public class TimeCardController {
if
(
bcs
!=
null
)
{
if
(
bcs
!=
null
)
{
// CalendarPunchDetailsDto dets = CalendarPunchDetailsDto.builder().build();
// CalendarPunchDetailsDto dets = CalendarPunchDetailsDto.builder().build();
dets
.
setClock_num
(
bcs
.
getSxbcs
()*
2
);
dets
.
setClock_num
(
bcs
.
getSxbcs
()*
2
);
dets
.
setBcsbdk1
(
(
""
).
equals
(
bcs
.
getSbdk1
())
?
""
:
bcs
.
getSbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk1
(
bcs
.
getSbdk1
()
==
null
?
""
:
bcs
.
getSbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk1
(
(
""
).
equals
(
bcs
.
getXbdk1
())
?
""
:
bcs
.
getXbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk1
(
bcs
.
getXbdk1
()
==
null
?
""
:
bcs
.
getXbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk2
(
(
""
).
equals
(
bcs
.
getSbdk2
())
?
""
:
bcs
.
getSbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk2
(
bcs
.
getSbdk2
()
==
null
?
""
:
bcs
.
getSbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk2
(
(
""
).
equals
(
bcs
.
getXbdk2
())
?
""
:
bcs
.
getXbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk2
(
bcs
.
getXbdk2
()
==
null
?
""
:
bcs
.
getXbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk3
(
(
""
).
equals
(
bcs
.
getSbdk3
())
?
""
:
bcs
.
getSbdk3
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk3
(
bcs
.
getSbdk3
()
==
null
?
""
:
bcs
.
getSbdk3
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk3
(
(
""
).
equals
(
bcs
.
getXbdk3
())
?
""
:
bcs
.
getXbdk3
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk3
(
bcs
.
getXbdk3
()
==
null
?
""
:
bcs
.
getXbdk3
().
replaceAll
(
"\r|\n"
,
""
));
// detailed.add(dets);
// detailed.add(dets);
}
}
}
}
...
@@ -3157,12 +3159,12 @@ public class TimeCardController {
...
@@ -3157,12 +3159,12 @@ public class TimeCardController {
KqglAssoBcsz
bcs
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
bcid
));
KqglAssoBcsz
bcs
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
bcid
));
if
(
bcs
!=
null
)
{
if
(
bcs
!=
null
)
{
dets
.
setClock_num
(
bcs
.
getSxbcs
()*
2
);
dets
.
setClock_num
(
bcs
.
getSxbcs
()*
2
);
dets
.
setBcsbdk1
(
(
""
).
equals
(
bcs
.
getSbdk1
())
?
""
:
bcs
.
getSbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk1
(
bcs
.
getSbdk1
()
==
null
?
""
:
bcs
.
getSbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk1
(
(
""
).
equals
(
bcs
.
getXbdk1
())
?
""
:
bcs
.
getXbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk1
(
bcs
.
getXbdk1
()
==
null
?
""
:
bcs
.
getXbdk1
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk2
(
(
""
).
equals
(
bcs
.
getSbdk2
())
?
""
:
bcs
.
getSbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk2
(
bcs
.
getSbdk2
()
==
null
?
""
:
bcs
.
getSbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk2
(
(
""
).
equals
(
bcs
.
getXbdk2
())
?
""
:
bcs
.
getXbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk2
(
bcs
.
getXbdk2
()
==
null
?
""
:
bcs
.
getXbdk2
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk3
(
(
""
).
equals
(
bcs
.
getSbdk3
())
?
""
:
bcs
.
getSbdk3
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcsbdk3
(
bcs
.
getSbdk3
()
==
null
?
""
:
bcs
.
getSbdk3
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk3
(
(
""
).
equals
(
bcs
.
getXbdk3
())
?
""
:
bcs
.
getXbdk3
().
replaceAll
(
"\r|\n"
,
""
));
dets
.
setBcxbdk3
(
bcs
.
getXbdk3
()
==
null
?
""
:
bcs
.
getXbdk3
().
replaceAll
(
"\r|\n"
,
""
));
}
}
}
}
detslist
.
add
(
dets
);
detslist
.
add
(
dets
);
...
...
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