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
ed920207
Commit
ed920207
authored
Jun 25, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
档案完整监控
parent
310c302f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+24
-4
TCompleteMonitorMapper.xml
...-biz/src/main/resources/mapper/TCompleteMonitorMapper.xml
+1
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
ed920207
...
...
@@ -67,10 +67,7 @@ import java.lang.reflect.Field;
import
java.math.BigDecimal
;
import
java.net.URLEncoder
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
* 员工合同
...
...
@@ -96,6 +93,8 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
private
final
TEmployeeContractAuditService
tEmployeeContractAuditService
;
private
final
TEmployeeLogService
tEmployeeLogService
;
private
final
TWorkHandlerInfoService
workHandlerInfoService
;
private
final
TPreEmpMainService
preEmpMainService
;
private
final
TPreEmployeeProjectService
preEmployeeProjectService
;
@Autowired
private
DaprSocialProperties
socialProperties
;
// 缓存信息
...
...
@@ -1616,6 +1615,27 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
tEmployeeInfo
.
setContractStatus
(
CommonConstants
.
ONE_INT
);
tEmployeeInfoMapper
.
updateById
(
tEmployeeInfo
);
}
//签订类型正常签订的时候更新预入职列表
if
(
EmployeeConstants
.
SITUATION_ONE
.
equals
(
contract
.
getSituation
()))
{
//根据项目编码和身份证号查询预入职列表
TPreEmpMain
empMain
=
preEmpMainService
.
getOne
(
Wrappers
.<
TPreEmpMain
>
query
()
.
lambda
().
eq
(
TPreEmpMain:
:
getEmpIdcard
,
contract
.
getEmpIdcard
())
.
eq
(
TPreEmpMain:
:
getDeptNo
,
contract
.
getDeptNo
()));
if
(
Optional
.
ofNullable
(
empMain
).
isPresent
())
{
//查询预入职项目档案表
TPreEmployeeProject
preEmployeeProject
=
preEmployeeProjectService
.
getOne
(
Wrappers
.<
TPreEmployeeProject
>
query
()
.
lambda
().
eq
(
TPreEmployeeProject:
:
getPreMainId
,
empMain
.
getId
()));
if
(
Optional
.
ofNullable
(
preEmployeeProject
).
isPresent
())
{
preEmployeeProject
.
setContractType
(
contract
.
getContractType
());
preEmployeeProject
.
setWorkingHours
(
contract
.
getWorkingHours
());
preEmployeeProject
.
setPost
(
contract
.
getPost
());
preEmployeeProject
.
setEnjoinDate
(
LocalDateTimeUtils
.
convertLDTToDate
(
contract
.
getEnjoinDate
()));
preEmployeeProject
.
setTryPeriod
(
contract
.
getTryPeriod
());
preEmployeeProjectService
.
save
(
preEmployeeProject
);
}
}
}
}
else
{
//是否同步终止合同、减项、减档为是的时候 单独写逻辑
if
(
EmployeeConstants
.
SITUATION_SEVEN
.
equals
(
contract
.
getSituation
())
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TCompleteMonitorMapper.xml
View file @
ed920207
...
...
@@ -160,6 +160,7 @@
a.UNIT_NO,
a.DEPT_NAME,
a.DEPT_NO,
a.DEPT_ID,
a.BUSINESS_PRIMARY_TYPE,
,a.BUSINESS_SECOND_TYPE,
,a.BUSINESS_THIRD_TYPE,
...
...
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