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
60e8242b
Commit
60e8242b
authored
Mar 24, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-入职登记提交
parent
61769b5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
EmployeeRegistrationPreServiceImpl.java
...ives/service/impl/EmployeeRegistrationPreServiceImpl.java
+11
-8
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/EmployeeRegistrationPreServiceImpl.java
View file @
60e8242b
...
...
@@ -389,9 +389,11 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
RegistParamVo
paramVo
=
new
RegistParamVo
();
List
<
RegistParamVo
>
params
=
new
ArrayList
<>();
List
<
String
>
phones
=
new
ArrayList
<>();
EmployeeRegistrationPre
updatePre
;
AliSmsResult
res
;
if
(
CommonConstants
.
ONE_STRING
.
equals
(
type
))
{
for
(
SendMessageUpdateVo
updateVo:
voList
)
{
EmployeeRegistrationPre
updatePre
=
baseMapper
.
selectOne
(
Wrappers
.<
EmployeeRegistrationPre
>
query
()
updatePre
=
baseMapper
.
selectOne
(
Wrappers
.<
EmployeeRegistrationPre
>
query
()
.
lambda
().
eq
(
EmployeeRegistrationPre:
:
getId
,
updateVo
.
getId
())
.
in
(
EmployeeRegistrationPre:
:
getProcessStatus
,
CommonConstants
.
processStatus
));
if
(
Common
.
isNotNull
(
updatePre
))
{
...
...
@@ -413,7 +415,7 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
employeeService
.
save
(
smsEmployee
);
paramVo
.
setLink
(
smsEmployee
.
getId
().
toString
());
params
.
add
(
paramVo
);
AliSmsResult
res
=
sendMessage
(
phones
,
params
);
res
=
sendMessage
(
phones
,
params
);
if
(
null
!=
res
&&
null
!=
res
.
getBizId
())
{
smsEmployee
.
setBizId
(
res
.
getBizId
());
smsEmployee
.
setMessage
(
res
.
getMessage
());
...
...
@@ -428,19 +430,20 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
}
}
}
else
{
TEmployeeInfo
info
;
for
(
SendMessageUpdateVo
updateVo:
voList
)
{
TEmployeeInfo
info
=
employeeInfoMapper
.
selectById
(
updateVo
.
getId
());
info
=
employeeInfoMapper
.
selectById
(
updateVo
.
getId
());
if
(
Common
.
isNotNull
(
info
))
{
paramVo
.
setName
(
info
.
getEmpName
());
phones
.
add
(
info
.
getEmpPhone
());
//如果有入职待建档数据同步更新
EmployeeRegistrationPre
registration
Pre
=
baseMapper
.
selectOne
(
Wrappers
.<
EmployeeRegistrationPre
>
query
().
lambda
()
update
Pre
=
baseMapper
.
selectOne
(
Wrappers
.<
EmployeeRegistrationPre
>
query
().
lambda
()
.
eq
(
EmployeeRegistrationPre:
:
getEmpIdcard
,
info
.
getEmpIdcard
())
.
eq
(
EmployeeRegistrationPre:
:
getDeptId
,
updateVo
.
getDeptId
())
.
eq
(
EmployeeRegistrationPre:
:
getProcessStatus
,
CommonConstants
.
ZERO_STRING
)
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
registration
Pre
))
{
registration
Pre
.
setProcessStatus
(
CommonConstants
.
ONE_STRING
);
if
(
Common
.
isNotNull
(
update
Pre
))
{
update
Pre
.
setProcessStatus
(
CommonConstants
.
ONE_STRING
);
}
//生成短信发送的记录
TRegisteWarningEmployee
smsEmployee
=
new
TRegisteWarningEmployee
();
...
...
@@ -455,12 +458,12 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
employeeService
.
save
(
smsEmployee
);
paramVo
.
setLink
(
smsEmployee
.
getId
().
toString
());
params
.
add
(
paramVo
);
AliSmsResult
res
=
sendMessage
(
phones
,
params
);
res
=
sendMessage
(
phones
,
params
);
if
(
null
!=
res
&&
null
!=
res
.
getBizId
())
{
smsEmployee
.
setBizId
(
res
.
getBizId
());
smsEmployee
.
setMessage
(
res
.
getMessage
());
employeeService
.
updateById
(
smsEmployee
);
this
.
updateById
(
registration
Pre
);
this
.
updateById
(
update
Pre
);
return
R
.
ok
();
}
else
{
smsEmployee
.
setMessage
(
"短信发送失败"
);
...
...
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