Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
35133f3c
Commit
35133f3c
authored
Mar 08, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-emailEmpty' into 'master'
1002540 方案邮件空值bug处理 See merge request rays/pcloud-book!527
parents
5b7f0a8e
5cdb20a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
CustomPlanEmailBizImpl.java
...m/pcloud/book/custom/biz/impl/CustomPlanEmailBizImpl.java
+12
-9
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/custom/biz/impl/CustomPlanEmailBizImpl.java
View file @
35133f3c
...
...
@@ -101,15 +101,18 @@ public class CustomPlanEmailBizImpl implements CustomPlanEmailBiz {
SendEmailDto
sendEmailDto
=
new
SendEmailDto
();
sendEmailDto
.
setTypeCode
(
"custom_plan_email_remind"
);
Map
<
String
,
Object
>
content
=
new
HashMap
<>();
content
.
put
(
"planNumber"
,
customPlan
.
getPlanNumber
());
content
.
put
(
"planName"
,
customPlan
.
getPlanName
());
content
.
put
(
"createUserName"
,
customPlan
.
getCreateUserName
());
content
.
put
(
"planDescription"
,
customPlan
.
getDescription
());
content
.
put
(
"planH5Url"
,
customPlan
.
getH5Url
());
content
.
put
(
"robotClassifyName"
,
customPlanEmailDto
.
getPcloudRobotClassifyName
());
content
.
put
(
"robotId"
,
customPlanEmailDto
.
getRobotId
());
content
.
put
(
"userWxId"
,
customPlanEmailDto
.
getUserWxId
());
content
.
put
(
"description"
,
customPlanEmailDto
.
getDescription
());
content
.
put
(
"planNumber"
,
StringUtil
.
isNotEmpty
(
customPlan
.
getPlanNumber
())
?
"<br/>方案编号:"
.
concat
(
customPlan
.
getPlanNumber
())
:
""
);
content
.
put
(
"planName"
,
StringUtil
.
isNotEmpty
(
customPlan
.
getPlanName
())
?
"<br/>方案名称:"
.
concat
(
customPlan
.
getPlanName
())
:
""
);
content
.
put
(
"createUserName"
,
StringUtil
.
isNotEmpty
(
customPlan
.
getCreateUserName
())
?
"<br/>方案创建者:"
.
concat
(
customPlan
.
getCreateUserName
())
:
""
);
content
.
put
(
"planDescription"
,
StringUtil
.
isNotEmpty
(
customPlan
.
getDescription
())
?
"<br/>方案说明:"
.
concat
(
customPlan
.
getDescription
())
:
""
);
content
.
put
(
"planH5Url"
,
StringUtil
.
isNotEmpty
(
customPlan
.
getH5Url
())
?
"<br/>方案链接:"
.
concat
(
customPlan
.
getH5Url
())
:
""
);
content
.
put
(
"planTarget"
,(
StringUtil
.
isNotEmpty
(
customPlanEmailDto
.
getPcloudRobotClassifyName
())
||
StringUtil
.
isNotEmpty
(
customPlanEmailDto
.
getRobotId
())
||
StringUtil
.
isNotEmpty
(
customPlanEmailDto
.
getUserWxId
()))?
"<br/>方案对象:"
:
""
);
content
.
put
(
"robotClassifyName"
,
StringUtil
.
isNotEmpty
(
customPlanEmailDto
.
getPcloudRobotClassifyName
())
?
" 分类:"
.
concat
(
customPlanEmailDto
.
getPcloudRobotClassifyName
())
:
""
);
content
.
put
(
"robotId"
,
StringUtil
.
isNotEmpty
(
customPlanEmailDto
.
getRobotId
())
?
" 小睿:"
.
concat
(
customPlanEmailDto
.
getRobotId
())
:
""
);
content
.
put
(
"userWxId"
,
StringUtil
.
isNotEmpty
(
customPlanEmailDto
.
getUserWxId
())
?
" 读者微信:"
.
concat
(
customPlanEmailDto
.
getUserWxId
())
:
""
);
content
.
put
(
"description"
,
StringUtil
.
isNotEmpty
(
customPlanEmailDto
.
getDescription
())
?
"<br/>邮件内容补充:"
.
concat
(
customPlanEmailDto
.
getDescription
())
:
""
);
sendEmailDto
.
setContent
(
content
);
for
(
String
email
:
customPlanEmailDto
.
getEmailList
()){
sendEmailDto
.
setToEmail
(
email
);
...
...
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