freemarker 默认值
This commit is contained in:
@@ -29,6 +29,7 @@ public class FreeMarkerTemplateUtils {
|
|||||||
CONFIGURATION.setDefaultEncoding("UTF-8");
|
CONFIGURATION.setDefaultEncoding("UTF-8");
|
||||||
CONFIGURATION.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
|
CONFIGURATION.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
|
||||||
CONFIGURATION.setCacheStorage(NullCacheStorage.INSTANCE);
|
CONFIGURATION.setCacheStorage(NullCacheStorage.INSTANCE);
|
||||||
|
CONFIGURATION.setClassicCompatible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Template getTemplate(String templateName) throws IOException {
|
public static Template getTemplate(String templateName) throws IOException {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.newyetai.usercenter.notice.service.impl;
|
package com.newyetai.usercenter.notice.service.impl;
|
||||||
|
|
||||||
|
import com.newyetai.common.util.DateUtils;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@@ -129,6 +130,8 @@ public class NoticeSendRecordServiceImpl implements NoticeSendRecordService {
|
|||||||
log.error("无对应消息通道处理...");
|
log.error("无对应消息通道处理...");
|
||||||
}
|
}
|
||||||
Set<Long> receiverUserIds = noticeSendRecordOperateDTO.getReceiverUserIds();
|
Set<Long> receiverUserIds = noticeSendRecordOperateDTO.getReceiverUserIds();
|
||||||
|
// 内置发送时间
|
||||||
|
noticeSendRecordOperateDTO.getContentParamDataMap().put("defaultSendDay", DateUtils.getCurrentYmd());
|
||||||
NoticeSendRecordDTO noticeSendRecordDTO =
|
NoticeSendRecordDTO noticeSendRecordDTO =
|
||||||
NoticeSendRecordDTO.builder().templateId(noticeSendRecordOperateDTO.getTemplateId())
|
NoticeSendRecordDTO.builder().templateId(noticeSendRecordOperateDTO.getTemplateId())
|
||||||
.senderOrgId(noticeSendRecordOperateDTO.getOperateOrgId())
|
.senderOrgId(noticeSendRecordOperateDTO.getOperateOrgId())
|
||||||
|
|||||||
Reference in New Issue
Block a user