fix 会议通知正文会影响发送短信
This commit is contained in:
@@ -42,9 +42,9 @@ public class SendMessageDTO implements Serializable {
|
||||
*/
|
||||
private String templateCode;
|
||||
/**
|
||||
* 是否使用模板
|
||||
* 会议通知正文
|
||||
*/
|
||||
private Boolean useTemplate;
|
||||
private String MeetingNotice;
|
||||
/**
|
||||
* 模板参数
|
||||
*/
|
||||
|
||||
+2
-2
@@ -116,8 +116,8 @@ public class SendMessageServiceImpl implements SendMessageService {
|
||||
emailHandle.SendMsgAndFile(sendMessageDTO.getEmail(), title, content,sendMessageDTO.getListFile());
|
||||
}else{
|
||||
//如果有通知内容就替换
|
||||
if (Objects.equals(sendMessageDTO.getUseTemplate(),false)){
|
||||
emailHandle.SendMsg(sendMessageDTO.getEmail(), title, map.get("value"));
|
||||
if (StringUtils.isNotBlank(sendMessageDTO.getMeetingNotice())){
|
||||
emailHandle.SendMsg(sendMessageDTO.getEmail(), title, sendMessageDTO.getMeetingNotice());
|
||||
}else {
|
||||
emailHandle.SendMsg(sendMessageDTO.getEmail(), title, content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user