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
a0ef436b
Commit
a0ef436b
authored
Apr 01, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拒绝入职优化-fxj
parent
70f77079
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
EmployeeRegistrationServiceImpl.java
.../v1/csp/service/impl/EmployeeRegistrationServiceImpl.java
+25
-8
No files found.
yifu-csp/yifu-csp-biz/src/main/java/com/yifu/cloud/plus/v1/csp/service/impl/EmployeeRegistrationServiceImpl.java
View file @
a0ef436b
...
...
@@ -2782,7 +2782,11 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
//获取项目信息
R
<
TSettleDomainSelectVo
>
domainR
=
archivesDaprUtil
.
getSettleDomainSelectVoById
(
excel
.
getDeptNo
());
if
(
null
==
domainR
||
!
CommonConstants
.
SUCCESS
.
equals
(
domainR
.
getCode
()))
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"访问员工基础服务异常:"
+((
null
==
domainR
||
null
==
domainR
.
getMsg
())?
""
:
domainR
.
getMsg
())));
String
errorMsg
=
Optional
.
ofNullable
(
domainR
)
.
map
(
R:
:
getMsg
)
.
orElse
(
"未知错误"
);
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"访问员工基础服务异常:"
+
errorMsg
));
continue
;
}
if
(
null
==
domainR
.
getData
()){
...
...
@@ -2807,19 +2811,32 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
//获取项目配置的字典值
postConfigList
=
postConfigMap
.
get
(
excel
.
getDeptNo
());
if
(
null
==
postConfigList
){
if
(
null
==
postConfigList
)
{
postConfigList
=
new
ArrayList
<>();
domainDictR
=
archivesDaprUtil
.
getDictListByDeptNo
(
excel
.
getDeptNo
());
if
(
Common
.
isNotNull
(
domainDictR
)
&&
Common
.
isNotNull
(
domainDictR
.
getData
())
&&
Common
.
isNotNull
(
domainDictR
.
getData
().
getSysAutoDictItemList
()))
{
// 校验响应数据完整性
if
(
Common
.
isNotNull
(
domainDictR
)
&&
Common
.
isNotNull
(
domainDictR
.
getData
())
&&
Common
.
isNotNull
(
domainDictR
.
getData
().
getSysAutoDictItemList
()))
{
List
<
SysAutoDictItem
>
dictItemList
=
domainDictR
.
getData
().
getSysAutoDictItemList
();
for
(
SysAutoDictItem
sysAutoDictItem
:
dictItemList
){
if
(
"post_type"
.
equals
(
sysAutoDictItem
.
getType
())){
postConfigList
.
add
(
sysAutoDictItem
.
getLabel
());
}
// 筛选并收集岗位类型标签
dictItemList
.
stream
()
.
filter
(
Objects:
:
nonNull
)
.
filter
(
item
->
"post_type"
.
equals
(
item
.
getType
()))
.
map
(
SysAutoDictItem:
:
getLabel
)
.
filter
(
Objects:
:
nonNull
)
.
forEach
(
postConfigList:
:
add
);
// 仅当获取到有效数据时才缓存
if
(!
postConfigList
.
isEmpty
())
{
postConfigMap
.
put
(
excel
.
getDeptNo
(),
postConfigList
);
}
postConfigMap
.
put
(
excel
.
getDeptNo
(),
postConfigList
);
}
}
// 插入
EmployeeRegistration
insert
=
new
EmployeeRegistration
();
BeanUtil
.
copyProperties
(
excel
,
insert
);
...
...
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