Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡园园
yanxuan-qc-change-system
Commits
79f526a1
Commit
79f526a1
authored
Dec 28, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 供应商邮件发送
parent
c0952047
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
SupplierSendService.java
...l/yanxuan/change/biz/service/rpc/SupplierSendService.java
+8
-8
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/rpc/SupplierSendService.java
View file @
79f526a1
...
...
@@ -43,18 +43,18 @@ public class SupplierSendService {
try
{
SupplierSendEmailReq
req
=
new
SupplierSendEmailReq
();
req
.
setSupplierId
(
supplier
);
EmailFactor
factor
=
EmailFactor
.
builder
().
data
(
param
).
emailTemplateEnum
(
emailTemplateEnum
)
.
type
(
EmailTypeEnum
.
HTML
.
getType
()).
build
();
String
content
=
this
.
content
(
factor
);
req
.
setMailContent
(
content
);
String
subject
=
factor
.
getSubject
();
String
subject
=
emailTemplateEnum
.
getSubject
();
//标题参数处理
if
(
Strings
.
isNotBlank
(
subjectParam
))
{
subject
=
String
.
format
(
subject
,
subjectParam
);
}
req
.
setMailSubject
(
subjectParam
);
log
.
debug
(
"[sendSupplierEmail] supplier:{}, subjectParam:{}, content:{}, subject:{}"
,
supplier
,
subjectParam
,
JSON
.
toJSONString
(
content
),
subject
);
req
.
setMailSubject
(
subject
);
EmailFactor
factor
=
EmailFactor
.
builder
().
data
(
param
).
emailTemplateEnum
(
emailTemplateEnum
).
subject
(
subject
)
.
type
(
EmailTypeEnum
.
HTML
.
getType
()).
build
();
String
content
=
this
.
content
(
factor
);
req
.
setMailContent
(
content
);
log
.
debug
(
"[sendSupplierEmail] supplier:{}, subjectParam:{}, subject:{}, content:{}"
,
supplier
,
subjectParam
,
subject
,
JSON
.
toJSONString
(
content
));
String
result
=
flowRpcSupplierSendService
.
sendEmail
(
req
);
log
.
info
(
"[sendSupplierEmail] result:{}"
,
result
);
}
catch
(
Exception
e
)
{
...
...
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