Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
94cf0b3d
Commit
94cf0b3d
authored
Jun 25, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
档案完整监控
parent
4de7b9ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+7
-5
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
94cf0b3d
...
...
@@ -36,6 +36,8 @@ import com.yifu.cloud.plus.v1.yifu.archives.constants.EmployeeContractConstants;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeContractInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeInfoMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TPreEmpMainMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TPreEmployeeProjectMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.*
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.*
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants
;
...
...
@@ -93,8 +95,8 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
private
final
TEmployeeContractAuditService
tEmployeeContractAuditService
;
private
final
TEmployeeLogService
tEmployeeLogService
;
private
final
TWorkHandlerInfoService
workHandlerInfoService
;
private
final
TPreEmpMain
Service
preEmpMainService
;
private
final
TPreEmployeeProject
Service
preEmployeeProjectService
;
private
final
TPreEmpMain
Mapper
preEmpMainMapper
;
private
final
TPreEmployeeProject
Mapper
preEmployeeProjectMapper
;
@Autowired
private
DaprSocialProperties
socialProperties
;
// 缓存信息
...
...
@@ -1618,12 +1620,12 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
//签订类型正常签订的时候更新预入职列表
if
(
EmployeeConstants
.
SITUATION_ONE
.
equals
(
contract
.
getSituation
()))
{
//根据项目编码和身份证号查询预入职列表
TPreEmpMain
empMain
=
preEmpMain
Service
.
ge
tOne
(
Wrappers
.<
TPreEmpMain
>
query
()
TPreEmpMain
empMain
=
preEmpMain
Mapper
.
selec
tOne
(
Wrappers
.<
TPreEmpMain
>
query
()
.
lambda
().
eq
(
TPreEmpMain:
:
getEmpIdcard
,
contract
.
getEmpIdcard
())
.
eq
(
TPreEmpMain:
:
getDeptNo
,
contract
.
getDeptNo
()));
if
(
Optional
.
ofNullable
(
empMain
).
isPresent
())
{
//查询预入职项目档案表
TPreEmployeeProject
preEmployeeProject
=
preEmployeeProject
Service
.
ge
tOne
(
Wrappers
.<
TPreEmployeeProject
>
query
()
TPreEmployeeProject
preEmployeeProject
=
preEmployeeProject
Mapper
.
selec
tOne
(
Wrappers
.<
TPreEmployeeProject
>
query
()
.
lambda
().
eq
(
TPreEmployeeProject:
:
getPreMainId
,
empMain
.
getId
()));
if
(
Optional
.
ofNullable
(
preEmployeeProject
).
isPresent
())
{
preEmployeeProject
.
setContractType
(
contract
.
getContractType
());
...
...
@@ -1631,7 +1633,7 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
preEmployeeProject
.
setPost
(
contract
.
getPost
());
preEmployeeProject
.
setEnjoinDate
(
LocalDateTimeUtils
.
convertLDTToDate
(
contract
.
getEnjoinDate
()));
preEmployeeProject
.
setTryPeriod
(
contract
.
getTryPeriod
());
preEmployeeProject
Service
.
save
(
preEmployeeProject
);
preEmployeeProject
Mapper
.
updateById
(
preEmployeeProject
);
}
}
}
...
...
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