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
2c79da67
Commit
2c79da67
authored
Jul 29, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
修复BUG See merge request 8timerv2/8timerapiv200!353
parents
229f0a39
91d211c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/main/java/cn/timer/api/utils/router/business/TransferPositionBusiness.java
+12
-2
No files found.
src/main/java/cn/timer/api/utils/router/business/TransferPositionBusiness.java
View file @
2c79da67
...
@@ -3,9 +3,12 @@ package cn.timer.api.utils.router.business;
...
@@ -3,9 +3,12 @@ package cn.timer.api.utils.router.business;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONObject
;
import
cn.timer.api.bean.zzgl.ZzglBmgwM
;
import
cn.timer.api.config.exception.CustomException
;
import
cn.timer.api.config.exception.CustomException
;
import
cn.timer.api.controller.zzgl.service.ZzglBmgwMService
;
import
cn.timer.api.controller.zzgl.service.ZzglBmgwMService
;
import
cn.timer.api.dto.spmk.FromData
;
import
cn.timer.api.dto.spmk.FromData
;
...
@@ -39,9 +42,10 @@ public class TransferPositionBusiness extends SpmkAssoBusiness {
...
@@ -39,9 +42,10 @@ public class TransferPositionBusiness extends SpmkAssoBusiness {
// 调入部门
// 调入部门
Integer
TransferInDepartment
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"__TransferInDepartment"
,
FromData
.
class
))
?
null
:
Convert
.
toInt
(
jsonObj
.
get
(
"__TransferInDepartment"
,
FromData
.
class
).
getValue
());
Integer
TransferInDepartment
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"__TransferInDepartment"
,
FromData
.
class
))
?
null
:
Convert
.
toInt
(
jsonObj
.
get
(
"__TransferInDepartment"
,
FromData
.
class
).
getValue
());
if
(!(
""
).
equals
(
jsonObj
.
get
(
"__TransferInPosition"
,
FromData
.
class
).
getValue
()))
{
/* __TransferInPosition */
if
(!(
""
).
equals
(
jsonObj
.
get
(
"__TransferInDepartment"
,
FromData
.
class
).
getValue
()))
{
// 调入岗位
// 调入岗位
Integer
TransferInPosition
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"__TransferIn
Position"
,
FromData
.
class
))
?
null
:
Integer
.
parseInt
(
jsonObj
.
get
(
"__TransferInPosition
"
,
FromData
.
class
).
getValue
());
Integer
TransferInPosition
=
ObjectUtil
.
isNull
(
jsonObj
.
get
(
"__TransferIn
Department"
,
FromData
.
class
))
?
null
:
Integer
.
parseInt
(
jsonObj
.
get
(
"__TransferInDepartment
"
,
FromData
.
class
).
getValue
());
}
}
if
(
TransferInDepartment
==
null
)
{
if
(
TransferInDepartment
==
null
)
{
...
@@ -60,6 +64,12 @@ public class TransferPositionBusiness extends SpmkAssoBusiness {
...
@@ -60,6 +64,12 @@ public class TransferPositionBusiness extends SpmkAssoBusiness {
.
build
();
.
build
();
System
.
out
.
println
(
"调岗:"
+
upEmpDeptDto
);
System
.
out
.
println
(
"调岗:"
+
upEmpDeptDto
);
ZzglBmgwM
bmg
=
ZzglBmgwM
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
ZzglBmgwM
>().
lambda
().
eq
(
ZzglBmgwM:
:
getOrgCode
,
orgCode
).
eq
(
ZzglBmgwM:
:
getLeader
,
id
));
if
(
bmg
!=
null
)
{
ZzglBmgwM
.
builder
().
id
(
bmg
.
getId
()).
leader
(
0
).
build
().
updateById
();
}
// 调 员工管理 业务
// 调 员工管理 业务
zzglBmgwMService
.
applicationTransferPosition
(
id
,
orgCode
,
upEmpDeptDto
);
zzglBmgwMService
.
applicationTransferPosition
(
id
,
orgCode
,
upEmpDeptDto
);
}
}
...
...
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