260219_01_ENH: 공용라이브러리 버전업, 알림톡 발송 구현 완료
This commit is contained in:
@@ -2,6 +2,7 @@ package com.kri.notihub.server.controller;
|
||||
|
||||
import com.kri.common.webmvc.RequestUserContext;
|
||||
import com.kri.notihub.server.common.enums.ChannelType;
|
||||
import com.kri.notihub.server.common.enums.SendType;
|
||||
import com.kri.notihub.server.dto.template.TemplateBasicDto;
|
||||
import com.kri.notihub.server.dto.template.TemplateDto;
|
||||
import com.kri.notihub.server.dto.template.TemplateSummaryDto;
|
||||
@@ -56,14 +57,16 @@ public class TemplateController {
|
||||
TemplateDto newTmplat = templateService.createTemplate(template.getItrntPrjctCd(), template,
|
||||
ctx.getUserId());
|
||||
|
||||
String newHtml = fileService.syncOnSave(
|
||||
newTmplat.getItrntPrjctCd(),
|
||||
newTmplat.getTmplatIdx(),
|
||||
newTmplat.getTmplatBody()
|
||||
);
|
||||
newTmplat.setTmplatBody(newHtml);
|
||||
if (template.getTmplatTy() == SendType.EMAIL) {
|
||||
String newHtml = fileService.syncOnSave(
|
||||
newTmplat.getItrntPrjctCd(),
|
||||
newTmplat.getTmplatIdx(),
|
||||
newTmplat.getTmplatBody()
|
||||
);
|
||||
newTmplat.setTmplatBody(newHtml);
|
||||
|
||||
templateService.updateTemplateBodyWithCreate(newTmplat);
|
||||
templateService.updateTemplateBodyWithCreate(newTmplat);
|
||||
}
|
||||
|
||||
return newTmplat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user