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
84698311
Commit
84698311
authored
Jun 24, 2020
by
lal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复BUG
parent
9e826e0f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+9
-1
src/main/java/cn/timer/api/utils/router/RouterUtils.java
+5
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
84698311
...
...
@@ -984,6 +984,9 @@ public class TimeCardController {
lea
.
setCompany
(
company
);
leas
.
add
(
lea
);
}
return
ResultUtil
.
data
(
leas
,
"操作成功!"
);
}
else
{
return
ResultUtil
.
success
(
"请先加入考勤组"
)
;
}
// List<KqglAssoLeaveRules> balheas = kqglassoleaverulesmapper.selHeaderdata(userBean.getOrgCode(), 2, 1);
...
...
@@ -994,7 +997,7 @@ public class TimeCardController {
// lea.setValue(rul.getName());
// leas.add(lea);
// }
return
ResultUtil
.
data
(
leas
,
"操作成功!"
);
}
/**
...
...
@@ -2565,6 +2568,8 @@ public class TimeCardController {
@ApiOperation
(
value
=
"222: 加班类型"
,
httpMethod
=
"GET"
,
notes
=
" 查询列表-加班补偿方式"
)
public
Result
<
Object
>
overtimetypelist
(
@CurrentUser
UserBean
userBean
)
{
KqglMainKqz
attgro
=
kqglmainkqzmapper
.
getAttendanceGroupInformationByUserid
(
userBean
.
getEmpNum
(),
userBean
.
getOrgCode
());
//考勤组信息
if
(
attgro
!=
null
)
{
List
<
CompensateDto
>
coms
=
new
ArrayList
<
CompensateDto
>();
KqglAssoYhkqz
yhd
=
KqglAssoYhkqz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoYhkqz
>().
lambda
().
eq
(
KqglAssoYhkqz:
:
getUserid
,
userBean
.
getEmpNum
()).
eq
(
KqglAssoYhkqz:
:
getQyid
,
userBean
.
getOrgCode
()));
...
...
@@ -2595,6 +2600,9 @@ public class TimeCardController {
}
}
return
ResultUtil
.
data
(
coms
,
"操作成功!"
);
}
else
{
return
ResultUtil
.
success
(
"操作失败,请先加入考勤组"
);
}
}
...
...
src/main/java/cn/timer/api/utils/router/RouterUtils.java
View file @
84698311
...
...
@@ -190,7 +190,11 @@ public class RouterUtils {
// 装配 部门人员
if
(
RELATION_TYPE_DEPARTMENT
.
equals
(
listRelations
.
get
(
i
).
getType
())
&&
listRelations
.
get
(
i
).
getDepartmentId
()
!=
null
)
{
List
<
YgglMainEmp
>
listYgglMainEmp
=
selectOtherlistent
(
Integer
.
parseInt
(
obj
.
get
(
"orgCode"
,
FromData
.
class
).
getValue
().
trim
()),
Integer
.
valueOf
(
listRelations
.
get
(
i
).
getDepartmentId
().
trim
()));
String
asd
=
listRelations
.
get
(
i
).
getDepartmentId
();
asd
=
asd
.
replaceAll
(
"\\["
,
""
).
replaceAll
(
"\\]"
,
""
).
replaceAll
(
"\\\""
,
""
);
// List<YgglMainEmp> listYgglMainEmp = selectOtherlistent(Integer.parseInt(obj.get("orgCode",FromData.class).getValue().trim()), Integer.valueOf(listRelations.get(i).getDepartmentId().trim()));
List
<
YgglMainEmp
>
listYgglMainEmp
=
selectOtherlistent
(
Integer
.
parseInt
(
obj
.
get
(
"orgCode"
).
toString
()),
Integer
.
valueOf
(
asd
));
if
(
listYgglMainEmp
!=
null
&&
listYgglMainEmp
.
size
()
>
0
)
{
List
<
User
>
listUsers
=
new
ArrayList
<
User
>();
...
...
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