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
0633d70a
Commit
0633d70a
authored
Jul 07, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
698d519f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
78 deletions
+29
-78
UpProjectSocialFundVo.java
...cloud/plus/v1/yifu/archives/vo/UpProjectSocialFundVo.java
+1
-0
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+6
-4
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+22
-74
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/vo/UpProjectSocialFundVo.java
View file @
0633d70a
...
...
@@ -53,4 +53,5 @@ public class UpProjectSocialFundVo implements Serializable {
String
detailId
;
String
contactAddress
;
String
highEducation
;
String
flag
;
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
0633d70a
...
...
@@ -1396,9 +1396,6 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
if
(
Common
.
isNotNull
(
vo
.
getFundStatus
()))
{
employee
.
setFundStatus
(
Integer
.
parseInt
(
vo
.
getFundStatus
()));
}
if
(
Common
.
isNotNull
(
vo
.
getHighEducation
()))
{
employee
.
setHignEducation
(
vo
.
getHighEducation
());
}
if
(
Common
.
isNotNull
(
vo
.
getFileProvince
()))
{
employee
.
setFileProvince
(
Integer
.
parseInt
(
vo
.
getFileProvince
()));
}
...
...
@@ -1413,7 +1410,12 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
if
(
Common
.
isNotNull
(
vo
.
getMobile
()))
{
employee
.
setEmpPhone
(
vo
.
getMobile
());
}
employee
.
setIsCollege
(
CommonConstants
.
ONE_INT
);
if
(
Common
.
isEmpty
(
vo
.
getFlag
())){
employee
.
setIsCollege
(
CommonConstants
.
ONE_INT
);
if
(
Common
.
isNotNull
(
vo
.
getHighEducation
()))
{
employee
.
setHignEducation
(
vo
.
getHighEducation
());
}
}
tEmployeeInfoMapper
.
updateSocialInfoById
(
employee
);
}
TEmployeeProject
project
=
baseMapper
.
selectOne
(
Wrappers
.<
TEmployeeProject
>
query
().
lambda
()
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
0633d70a
...
...
@@ -832,59 +832,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
excel
.
getEducationName
().
equals
(
"中专"
))
{
vo
.
setHighEducation
(
"11"
);
}
}
if
(
Common
.
isNotNull
(
emp
.
getHignEducation
()))
{
if
(
excel
.
getEducationName
().
equals
(
"文盲"
))
{
if
(
emp
.
getHignEducation
()
==
"1"
)
{
vo
.
setHighEducation
(
"1"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"小学"
))
{
if
(
emp
.
getHignEducation
()
==
"2"
)
{
vo
.
setHighEducation
(
"2"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"初中"
))
{
if
(
emp
.
getHignEducation
()
==
"3"
)
{
vo
.
setHighEducation
(
"3"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"高中"
))
{
if
(
emp
.
getHignEducation
()
==
"4"
)
{
vo
.
setHighEducation
(
"4"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"大专"
))
{
if
(
emp
.
getHignEducation
()
==
"5"
)
{
vo
.
setHighEducation
(
"5"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"本科"
))
{
if
(
emp
.
getHignEducation
()
==
"6"
)
{
vo
.
setHighEducation
(
"6"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"硕士"
))
{
if
(
emp
.
getHignEducation
()
==
"7"
)
{
vo
.
setHighEducation
(
"7"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"技工"
))
{
if
(
emp
.
getHignEducation
()
==
"9"
)
{
vo
.
setHighEducation
(
"9"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"职高"
))
{
if
(
emp
.
getHignEducation
()
==
"10"
)
{
vo
.
setHighEducation
(
"10"
);
}
}
if
(
excel
.
getEducationName
().
equals
(
"中专"
))
{
if
(
emp
.
getHignEducation
()
==
"11"
)
{
vo
.
setHighEducation
(
"11"
);
}
}
}
}
}
...
...
@@ -2326,21 +2273,21 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return
true
;
}
// 如果没有人员档案和项目档案的时候校验身份证和手机号码
R
<
Boolean
>
checkRes
=
checkDaprUtil
.
checkIdCardAndMobile
(
excel
.
getEmpName
(),
excel
.
getEmpIdcard
(),
excel
.
getEmpMobile
());
if
(
Common
.
isEmpty
(
checkRes
)
||
checkRes
.
getCode
()
!=
CommonConstants
.
SUCCESS
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
checkRes
.
getMsg
()));
return
true
;
}
// 校验手机号码重复
checkRes
=
archivesDaprUtil
.
checkMobile
(
excel
.
getEmpMobile
());
if
(
Common
.
isEmpty
(
checkRes
)
||
checkRes
.
getCode
()
!=
CommonConstants
.
SUCCESS
){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
checkRes
.
getMsg
()));
return
true
;
}
if
(
checkRes
.
getData
().
booleanValue
()){
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
MsgUtils
.
getMessage
(
ErrorCodes
.
EMP_DISPATCH_EMP_MOBILE_REPEAT
)));
return
true
;
}
//
R<Boolean> checkRes = checkDaprUtil.checkIdCardAndMobile(excel.getEmpName(),excel.getEmpIdcard(),excel.getEmpMobile());
//
if (Common.isEmpty(checkRes) || checkRes.getCode() != CommonConstants.SUCCESS){
//
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), checkRes.getMsg()));
//
return true;
//
}
//
// 校验手机号码重复
//
checkRes = archivesDaprUtil.checkMobile(excel.getEmpMobile());
//
if (Common.isEmpty(checkRes) || checkRes.getCode() != CommonConstants.SUCCESS){
//
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), checkRes.getMsg()));
//
return true;
//
}
//
if (checkRes.getData().booleanValue()){
//
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), MsgUtils.getMessage(ErrorCodes.EMP_DISPATCH_EMP_MOBILE_REPEAT)));
//
return true;
//
}
}
Date
contractDateTemp
=
excel
.
getContractStart
();
/*项目档案有可用状态的合同:
...
...
@@ -2389,12 +2336,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
empVo
.
getEmpPhone
())
&&
Common
.
isEmpty
(
excel
.
getEmpMobile
())){
excel
.
setEmpMobile
(
empVo
.
getEmpPhone
());
}
// 如果存在档案但是手机号码不为空校验号码
if
(
Common
.
isNotNull
(
excel
.
getEmpMobile
())
&&
!
excel
.
getEmpMobile
().
equals
(
empVo
.
getEmpPhone
())
&&
checkMobileAndIdcard
(
errorMessageList
,
excel
)){
return
true
;
}
//
// 如果存在档案但是手机号码不为空校验号码
//
if (Common.isNotNull(excel.getEmpMobile())
//
&& !excel.getEmpMobile().equals(empVo.getEmpPhone())
//
&& checkMobileAndIdcard(errorMessageList, excel)){
//
return true;
//
}
// 档案地 手机号码, 派单有数据 更新档案,派单没有 有档案取值档案数据
if
(
Common
.
isEmpty
(
excel
.
getFileProvince
())){
excel
.
setFileProvince
(
Common
.
isNotNullToStr
(
empVo
.
getFileProvince
()));
...
...
@@ -3543,6 +3490,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if
(
Common
.
isNotNull
(
dis
.
getFundId
())){
vo
.
setFundStatus
(
CommonConstants
.
ZERO_STRING
);
}
vo
.
setFlag
(
CommonConstants
.
ONE_STRING
);
vo
.
setEmpIdCard
(
dis
.
getEmpIdcard
());
vo
.
setDepartNo
(
dis
.
getSettleDomainCode
());
if
(
flagTemp
){
...
...
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