Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hubin
long-tern-care-service
Commits
35fa1596
Commit
35fa1596
authored
Apr 17, 2023
by
zhangwanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决合并冲突代码
parent
14af107b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
SrvOrganEmpServiceImpl.java
...com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
+9
-9
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/SrvOrganEmpServiceImpl.java
View file @
35fa1596
...
...
@@ -125,8 +125,8 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
@Override
public
int
saveOrUpdateSrvOrganEmp
(
SrvOrganEmpVo
srvOrganEmpVo
)
{
Long
empId
=
srvOrganEmpVo
.
getEmpId
();
ChSrvOrganEmp
Apply
chSrvOrganEmpApply
=
new
ChSrvOrganEmpApply
();
BeanUtils
.
copyProperties
(
srvOrganEmpVo
,
chSrvOrganEmp
Apply
);
ChSrvOrganEmp
chSrvOrganEmp
=
new
ChSrvOrganEmp
();
BeanUtils
.
copyProperties
(
srvOrganEmpVo
,
chSrvOrganEmp
);
int
queryResult
=
0
;
if
(
null
==
empId
)
{
QueryWrapper
<
ChSrvOrganEmp
>
queryWrapper
=
new
QueryWrapper
<>();
...
...
@@ -134,23 +134,23 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
queryWrapper
.
eq
(
"IS_LOCK"
,
0
);
queryResult
=
chSrvOrganEmpMapper
.
selectCount
(
queryWrapper
);
if
(
queryResult
>
0
){
return
queryResult
;
return
queryResult
;
}
// 新增
chSrvOrganEmp
Apply
.
setEffTime
(
new
Date
());
chSrvOrganEmp
Apply
.
setIsLock
((
short
)
0
);
chSrvOrganEmp
ApplyMapper
.
insert
(
chSrvOrganEmpApply
);
updateAttachs
(
srvOrganEmpVo
,
chSrvOrganEmp
Apply
.
getEmpId
());
chSrvOrganEmp
.
setEffTime
(
new
Date
());
chSrvOrganEmp
.
setIsLock
((
short
)
0
);
chSrvOrganEmp
Mapper
.
insert
(
chSrvOrganEmp
);
updateAttachs
(
srvOrganEmpVo
,
chSrvOrganEmp
.
getEmpId
());
ChSrvempRiskLevel
chSrvempRiskLevel
=
new
ChSrvempRiskLevel
();
chSrvempRiskLevel
.
setRiskLevel
(
0L
);
chSrvempRiskLevel
.
setSrvEmpId
(
Long
.
valueOf
(
chSrvOrganEmp
Apply
.
getEmpId
()));
chSrvempRiskLevel
.
setSrvEmpId
(
Long
.
valueOf
(
chSrvOrganEmp
.
getEmpId
()));
chSrvempRiskLevel
.
setStatus
(
0
);
chSrvempRiskLevel
.
setFcd
(
new
Date
());
chSrvempRiskLevelMapper
.
insert
(
chSrvempRiskLevel
);
}
else
{
// 修改
chSrvOrganEmp
ApplyMapper
.
updateById
(
chSrvOrganEmpApply
);
chSrvOrganEmp
Mapper
.
updateById
(
chSrvOrganEmp
);
updateAttachs
(
srvOrganEmpVo
,
empId
);
}
return
queryResult
;
...
...
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