fix mailccs 为null

master
luoyang 5 years ago
parent e8b67ee3be
commit 23297de309

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.0.36</version> <version>1.0.37</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -157,7 +157,9 @@ public class MailServiceImp implements MailService {
List<JSONObject> mailClients = new ArrayList<>(); List<JSONObject> mailClients = new ArrayList<>();
JSONObject mailClient = new JSONObject(); JSONObject mailClient = new JSONObject();
mailClient.put("mailto", mailTos); mailClient.put("mailto", mailTos);
mailClient.put("mailcc", mailCcs); if (StringUtils.isNotBlank(mailCcs)) {
mailClient.put("mailcc", mailCcs);
}
mailClients.add(mailClient); mailClients.add(mailClient);
noticeBean.setMailClients(mailClients); noticeBean.setMailClients(mailClients);
noticeBean.setContent(content); noticeBean.setContent(content);

Loading…
Cancel
Save