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
25ccbb1d
Commit
25ccbb1d
authored
Oct 25, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.0 优化
parent
bf6910b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
39 deletions
+53
-39
TPreEmpMainServiceImpl.java
...v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
+53
-39
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TPreEmpMainServiceImpl.java
View file @
25ccbb1d
...
...
@@ -3067,63 +3067,77 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
List
<
String
>
idCardList
=
new
ArrayList
<>();
for
(
PreUploadEmpImportVo
info
:
excelList
)
{
errorCheck
=
new
StringBuilder
();
if
(
Common
.
isNotNull
(
info
.
getEmpName
()))
{
if
(
idCardFlag
==
0
)
{
if
(
Common
.
isNotNull
(
info
.
getEmpIdcard
()))
{
resultB
=
idCardMap
.
get
(
info
.
getEmpIdcard
()
+
CommonConstants
.
DOWN_LINE_STRING
+
info
.
getEmpName
());
if
(
info
.
getIsMain
())
{
if
(
Common
.
isNotNull
(
info
.
getEmpName
()))
{
if
(
idCardFlag
==
0
)
{
if
(
Common
.
isNotNull
(
info
.
getEmpIdcard
()))
{
resultB
=
idCardMap
.
get
(
info
.
getEmpIdcard
()
+
CommonConstants
.
DOWN_LINE_STRING
+
info
.
getEmpName
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"姓名&身份证号不一致;"
);
}
}
else
{
errorCheck
.
append
(
"姓名&身份证号未校验;"
);
}
}
}
else
if
(
idCardFlag
==
2
)
{
errorCheck
.
append
(
"姓名&身份证号不一致;"
);
}
if
(
Common
.
isNotNull
(
info
.
getBankNo
()))
{
resultB
=
bankNoMap
.
get
(
info
.
getBankNo
()
+
CommonConstants
.
DOWN_LINE_STRING
+
info
.
getEmpName
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"姓名&
身份证
号不一致;"
);
errorCheck
.
append
(
"姓名&
银行卡
号不一致;"
);
}
}
else
{
errorCheck
.
append
(
"姓名&
身份证
号未校验;"
);
errorCheck
.
append
(
"姓名&
银行卡
号未校验;"
);
}
}
}
else
if
(
idCardFlag
==
2
)
{
errorCheck
.
append
(
"姓名&身份证号不一致;"
);
}
if
(
Common
.
isNotNull
(
info
.
getBankNo
()))
{
resultB
=
bankNoMap
.
get
(
info
.
getBankNo
()
+
CommonConstants
.
DOWN_LINE_STRING
+
info
.
getEmpName
());
// 手机号码
if
(
Common
.
isNotNull
(
info
.
getEmpPhone
()))
{
resultB
=
phoneMap
.
get
(
info
.
getEmpPhone
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"
姓名&银行卡号不一致
;"
);
errorCheck
.
append
(
"
手机号码校验不通过
;"
);
}
}
else
{
errorCheck
.
append
(
"
姓名&银行卡号
未校验;"
);
errorCheck
.
append
(
"
手机号码
未校验;"
);
}
}
}
// 手机号码
if
(
Common
.
isNotNull
(
info
.
getEmpPhone
()))
{
resultB
=
phoneMap
.
get
(
info
.
getEmpPhone
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"手机号码校验不通过;"
);
// 手机号码(紧急联系人)
if
(
Common
.
isNotNull
(
info
.
getTel
()))
{
resultB
=
phoneMap
.
get
(
info
.
getTel
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"手机号码(紧急联系人)校验不通过;"
);
}
}
else
{
errorCheck
.
append
(
"手机号码(紧急联系人)未校验;"
);
}
}
else
{
errorCheck
.
append
(
"手机号码未校验;"
);
}
}
// 手机号码(紧急联系人)
if
(
Common
.
isNotNull
(
info
.
getTel
()))
{
resultB
=
phoneMap
.
get
(
info
.
getTel
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"手机号码(紧急联系人)校验不通过;"
);
// 手机号码(家庭成员)
if
(
Common
.
isNotNull
(
info
.
getContractTel
()))
{
resultB
=
phoneMap
.
get
(
info
.
getContractTel
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"手机号码(家庭成员)校验不通过;"
);
}
}
else
{
errorCheck
.
append
(
"手机号码(家庭成员)未校验;"
);
}
}
else
{
errorCheck
.
append
(
"手机号码(紧急联系人)未校验;"
);
}
}
// 手机号码(家庭成员)
if
(
Common
.
isNotNull
(
info
.
getContractTel
()))
{
resultB
=
phoneMap
.
get
(
info
.
getContractTel
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"手机号码(家庭成员)校验不通过;"
);
}
else
{
// 手机号码(家庭成员)
if
(
Common
.
isNotNull
(
info
.
getContractTel
()))
{
resultB
=
phoneMap
.
get
(
info
.
getContractTel
());
if
(
resultB
!=
null
)
{
if
(
Boolean
.
FALSE
.
equals
(
resultB
))
{
errorCheck
.
append
(
"手机号码(家庭成员)校验不通过;"
);
}
}
else
{
errorCheck
.
append
(
"手机号码(家庭成员)未校验;"
);
}
}
else
{
errorCheck
.
append
(
"手机号码(家庭成员)未校验;"
);
}
}
if
(
errorCheck
.
length
()
>
0
)
{
...
...
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