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
a5e0d51f
Commit
a5e0d51f
authored
Jan 16, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.4-人员合同相关
parent
8d64e01e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+15
-4
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
a5e0d51f
...
@@ -1548,15 +1548,25 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
...
@@ -1548,15 +1548,25 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
employee
=
tEmployeeInfoMapper
.
selectById
(
employeeInfo
.
getEmpId
());
employee
=
tEmployeeInfoMapper
.
selectById
(
employeeInfo
.
getEmpId
());
initEmpBusinessInfo
(
employeeInfo
,
employee
,
businessVo
,
tBusinessEmployeeExtendInfo
);
initEmpBusinessInfo
(
employeeInfo
,
employee
,
businessVo
,
tBusinessEmployeeExtendInfo
);
}
}
// 获取合同数据
// 获取合同数据(去除作废,终止)
List
<
TEmployeeContractInfo
>
contractInfoList
=
contractInfoMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
().
lambda
()
List
<
TEmployeeContractInfo
>
contractInfoList
=
contractInfoMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
().
lambda
()
.
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
employeeInfo
.
getEmpIdcard
())
.
eq
(
TEmployeeContractInfo:
:
getIsObsolete
,
CommonConstants
.
ZERO_STRING
)
.
ne
(
TEmployeeContractInfo:
:
getSituation
,
EmployeeConstants
.
SITUATION_SIX
)
.
ne
(
TEmployeeContractInfo:
:
getSituation
,
EmployeeConstants
.
SITUATION_SEVEN
)
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
settleDomain
)
.
orderByDesc
(
TEmployeeContractInfo:
:
getContractStart
));
// 获取合同数据(全部2023-1-16 11:32:12 倩倩要求:B端人员里要看到作废中止的合同(原话:显示没有问题))
List
<
TEmployeeContractInfo
>
allContractInfoList
=
contractInfoMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
().
lambda
()
.
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
employeeInfo
.
getEmpIdcard
())
.
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
employeeInfo
.
getEmpIdcard
())
.
eq
(
TEmployeeContractInfo:
:
getIsObsolete
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeContractInfo:
:
getIsObsolete
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
settleDomain
)
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
settleDomain
)
.
orderByDesc
(
TEmployeeContractInfo:
:
getContractStart
));
.
orderByDesc
(
TEmployeeContractInfo:
:
getContractStart
));
// 处理详情对应的合同信息
// 处理详情对应的合同信息
if
(
Common
.
isNotNull
(
contractInfoList
)){
if
(
Common
.
isNotNull
(
contractInfoList
)){
initEmpBusinessContractInfo
(
businessDetailVo
,
contractInfoList
);
initEmpBusinessContractInfo
(
businessDetailVo
,
contractInfoList
,
allContractInfoList
);
}
}
// 获取最高学历
// 获取最高学历
List
<
TEmpEducation
>
educations
=
empEducationMapper
.
selectList
(
Wrappers
.<
TEmpEducation
>
query
().
lambda
()
List
<
TEmpEducation
>
educations
=
empEducationMapper
.
selectList
(
Wrappers
.<
TEmpEducation
>
query
().
lambda
()
...
@@ -1606,14 +1616,15 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
...
@@ -1606,14 +1616,15 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
return
R
.
ok
(
businessVo
);
return
R
.
ok
(
businessVo
);
}
}
private
void
initEmpBusinessContractInfo
(
EmployeeBusinessDetailVo
businessDetailVo
,
List
<
TEmployeeContractInfo
>
contractInfoList
)
{
private
void
initEmpBusinessContractInfo
(
EmployeeBusinessDetailVo
businessDetailVo
,
List
<
TEmployeeContractInfo
>
contractInfoList
,
List
<
TEmployeeContractInfo
>
allContractInfoList
)
{
businessDetailVo
.
setSituationCount
(
contractInfoList
.
size
());
businessDetailVo
.
setSituationCount
(
contractInfoList
.
size
());
if
(
businessDetailVo
.
getSituationCount
()
>
CommonConstants
.
ONE_INT
){
if
(
businessDetailVo
.
getSituationCount
()
>
CommonConstants
.
ONE_INT
){
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationRenew
);
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationRenew
);
}
else
{
}
else
{
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationNew
);
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationNew
);
}
}
businessDetailVo
.
setContractInfoList
(
c
ontractInfoList
);
businessDetailVo
.
setContractInfoList
(
allC
ontractInfoList
);
TEmployeeContractInfo
contractInfo
=
contractInfoList
.
get
(
CommonConstants
.
ZERO_INT
);
TEmployeeContractInfo
contractInfo
=
contractInfoList
.
get
(
CommonConstants
.
ZERO_INT
);
if
(
null
!=
contractInfo
.
getContractEnd
()){
if
(
null
!=
contractInfo
.
getContractEnd
()){
businessDetailVo
.
setContractEndDate
(
DateUtil
.
formatDate
(
contractInfo
.
getContractEnd
()));
businessDetailVo
.
setContractEndDate
(
DateUtil
.
formatDate
(
contractInfo
.
getContractEnd
()));
...
...
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