260617_01_ENH: 문자 줄바꿈 저장 되게 수정

This commit is contained in:
2026-06-17 14:38:49 +09:00
parent 556385ddbd
commit bc72bf2526
9 changed files with 96 additions and 20 deletions

View File

@@ -84,12 +84,14 @@ public class TemplateController {
@Valid @RequestBody TemplateDto template,
RequestUserContext ctx
) {
String newHtml = fileService.syncOnSave(
template.getItrntPrjctCd(),
template.getTmplatIdx(),
template.getTmplatBody()
);
template.setTmplatBody(newHtml);
if (template.getTmplatTy() == SendType.EMAIL) {
String newHtml = fileService.syncOnSave(
template.getItrntPrjctCd(),
template.getTmplatIdx(),
template.getTmplatBody()
);
template.setTmplatBody(newHtml);
}
return templateService.updateTemplate(template, ctx.getUserId());
}