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
67594341
Commit
67594341
authored
Jun 24, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
修复BUG See merge request 8timerv2/8timerapiv200!273
parents
2421feda
91672991
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
28 deletions
+40
-28
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+35
-27
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 @
67594341
...
...
@@ -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,36 +2568,41 @@ public class TimeCardController {
@ApiOperation
(
value
=
"222: 加班类型"
,
httpMethod
=
"GET"
,
notes
=
" 查询列表-加班补偿方式"
)
public
Result
<
Object
>
overtimetypelist
(
@CurrentUser
UserBean
userBean
)
{
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
()));
if
(
yhd
!=
null
)
{
KqglAssoOvertimeRange
timeran
=
KqglAssoOvertimeRange
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getAttgroupId
,
yhd
.
getKqzid
()));
if
(
timeran
!=
null
)
{
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
.
getIsWorkovertime
()
==
1
)
{
CompensateDto
com
=
CompensateDto
.
builder
().
build
();
com
.
setId
(
1
);
com
.
setValue
(
"工作日加班"
);
coms
.
add
(
com
);
}
if
(
rul
.
getIsRestovertime
()
==
1
)
{
CompensateDto
com2
=
CompensateDto
.
builder
().
build
();
com2
.
setId
(
2
);
com2
.
setValue
(
"休息日加班"
);
coms
.
add
(
com2
);
}
if
(
rul
.
getIsHolidays
()
==
1
)
{
CompensateDto
com3
=
CompensateDto
.
builder
().
build
();
com3
.
setId
(
3
);
com3
.
setValue
(
"节假日加班"
);
coms
.
add
(
com3
);
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
()));
if
(
yhd
!=
null
)
{
KqglAssoOvertimeRange
timeran
=
KqglAssoOvertimeRange
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getAttgroupId
,
yhd
.
getKqzid
()));
if
(
timeran
!=
null
)
{
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
.
getIsWorkovertime
()
==
1
)
{
CompensateDto
com
=
CompensateDto
.
builder
().
build
();
com
.
setId
(
1
);
com
.
setValue
(
"工作日加班"
);
coms
.
add
(
com
);
}
if
(
rul
.
getIsRestovertime
()
==
1
)
{
CompensateDto
com2
=
CompensateDto
.
builder
().
build
();
com2
.
setId
(
2
);
com2
.
setValue
(
"休息日加班"
);
coms
.
add
(
com2
);
}
if
(
rul
.
getIsHolidays
()
==
1
)
{
CompensateDto
com3
=
CompensateDto
.
builder
().
build
();
com3
.
setId
(
3
);
com3
.
setValue
(
"节假日加班"
);
coms
.
add
(
com3
);
}
}
}
}
return
ResultUtil
.
data
(
coms
,
"操作成功!"
);
}
else
{
return
ResultUtil
.
success
(
"操作失败,请先加入考勤组"
);
}
return
ResultUtil
.
data
(
coms
,
"操作成功!"
);
}
...
...
src/main/java/cn/timer/api/utils/router/RouterUtils.java
View file @
67594341
...
...
@@ -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