Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
bbbde1f4
Commit
bbbde1f4
authored
Oct 08, 2021
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0000943: 报聘短信提醒内容区分报聘者、团队长\辅导人
parent
4fff65fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
+11
-1
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
View file @
bbbde1f4
...
...
@@ -785,6 +785,13 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
List
<
String
>
mobileNoList
=
new
ArrayList
<>(
3
);
mobileNoList
.
add
(
basicInfo
.
getMobileNo
());
String
name
=
basicInfo
.
getName
();
Map
<
String
,
List
<
String
>>
smsParam
=
new
HashMap
<>();
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
systemConfigService
.
getSingleConfigValue
(
"ALI_SMS_CONTRACT_3"
));
list
.
add
(
"{\"name\":\""
+
name
+
"\"}"
);
smsParam
.
put
(
basicInfo
.
getMobileNo
(),
list
);
if
(
memberShip
.
getMentorPractitionerId
()
!=
null
)
{
AclPractitioner
mentor
=
aclPractitionerMapper
.
selectByPrimaryKey
(
memberShip
.
getMentorPractitionerId
());
mobileNoList
.
add
(
mentor
.
getMobileNo
());
...
...
@@ -797,7 +804,6 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
// 若辅导人和团队长为同一人,去重
List
<
String
>
uniqueList
=
mobileNoList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
String
name
=
basicInfo
.
getName
();
String
system
=
memberShip
.
getSubsystem
();
String
mobileNo
;
String
templateCode
;
...
...
@@ -816,6 +822,10 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
for
(
int
i
=
0
;
i
<
uniqueList
.
size
();
i
++)
{
mobileNo
=
uniqueList
.
get
(
i
);
if
(
smsParam
.
get
(
mobileNo
)
!=
null
&&
smsParam
.
get
(
mobileNo
).
size
()
>
1
){
templateCode
=
smsParam
.
get
(
mobileNo
).
get
(
0
);
content
=
smsParam
.
get
(
mobileNo
).
get
(
1
);
}
sendService
.
sendEmailOrSMS
(
"sms"
,
mobileNo
,
"0"
,
content
,
templateCode
,
null
,
null
,
"电子报聘合同生成提醒"
,
99
,
hiringBasicInfoId
);
}
...
...
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