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
bd349edb
Commit
bd349edb
authored
Jun 29, 2020
by
lal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
14d1ab68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletions
+27
-1
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+27
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
bd349edb
...
@@ -276,7 +276,7 @@ public class TimeCardController {
...
@@ -276,7 +276,7 @@ public class TimeCardController {
if
(
listAs
.
get
(
i
).
getAppliedScope
()
==
0
)
{
//全公司
if
(
listAs
.
get
(
i
).
getAppliedScope
()
==
0
)
{
//全公司
nary
=
new
String
[
1
];
//用户名
nary
=
new
String
[
1
];
//用户名
naryid
=
new
String
[
1
];
//用户名
naryid
=
new
String
[
1
];
//用户名
nary
[
0
]
=
"
全公司
"
;
nary
[
0
]
=
"
未使用
"
;
naryid
[
0
]
=
"0"
;
naryid
[
0
]
=
"0"
;
}
else
{
}
else
{
List
<
KqglAssoOvertimeRange
>
overtim
=
kqglassoovertimerangemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getOvertimeRulesId
,
listAs
.
get
(
i
).
getId
()));
List
<
KqglAssoOvertimeRange
>
overtim
=
kqglassoovertimerangemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getOvertimeRulesId
,
listAs
.
get
(
i
).
getId
()));
...
@@ -3296,4 +3296,30 @@ public class TimeCardController {
...
@@ -3296,4 +3296,30 @@ public class TimeCardController {
return
ResultUtil
.
data
(
tabl
,
"操作成功!"
);
return
ResultUtil
.
data
(
tabl
,
"操作成功!"
);
}
}
@PostMapping
(
value
=
"/isitused"
)
@ApiOperation
(
value
=
"(加班规则)当选择加班规则范围中存在已使用的考勤组时,在用户确认后给用户一个提示,提示用户哪个考勤组已被使用,是否修改"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
Isitused
(
@CurrentUser
UserBean
userBean
,
@RequestBody
KqglAssoOvertimeRulesDto
overrules
)
{
String
msg
=
""
;
String
[]
launchs
=
overrules
.
getApplyrangeid
();
if
(
launchs
.
length
>
0
)
{
for
(
int
p
=
0
;
p
<
launchs
.
length
;
p
++){
KqglAssoOvertimeRange
ran
=
KqglAssoOvertimeRange
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getAttgroupId
,
launchs
[
p
]));
if
(
ran
!=
null
)
{
KqglMainKqz
kqz
=
KqglMainKqz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglMainKqz
>().
lambda
().
eq
(
KqglMainKqz:
:
getId
,
ran
.
getAttgroupId
()));
if
(
p
==
0
)
{
msg
+=
kqz
.
getName
();
}
else
{
msg
+=
"、"
+
kqz
.
getName
();
}
}
}
}
return
ResultUtil
.
data
(
msg
,
"操作成功!"
);
}
}
}
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