260617_01_ENH: 문자 줄바꿈 저장 되게 수정
This commit is contained in:
@@ -2,7 +2,9 @@ package com.kri.notihub.server.common.consts;
|
||||
|
||||
import com.kri.notihub.server.common.enums.SendType;
|
||||
import java.util.List;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
public final class NotihubConst {
|
||||
|
||||
public static final String NATION_CODE = "82";
|
||||
@@ -30,6 +32,4 @@ public final class NotihubConst {
|
||||
public static final short KKO_AT_STANDBY = 7900;
|
||||
public static final short KKO_AT_SUCCESS = 7000;
|
||||
|
||||
private NotihubConst() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.kri.notihub.server.persistence.entity;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
import java.time.Instant;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "t_unit_price")
|
||||
public class TUnitPriceEntity {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "unit_price_idx", nullable = false)
|
||||
private Integer id;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "send_ty", nullable = false)
|
||||
private Short sendTy;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "send_corp", nullable = false)
|
||||
private Short sendCorp;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "price", nullable = false)
|
||||
private Integer price;
|
||||
|
||||
@NotNull
|
||||
@Column(name = "is_use", nullable = false)
|
||||
private Boolean use;
|
||||
|
||||
@Size(max = 32)
|
||||
@NotNull
|
||||
@Column(name = "reg_user", nullable = false, length = 32)
|
||||
private String regUser;
|
||||
|
||||
@NotNull
|
||||
@ColumnDefault("CURRENT_TIMESTAMP")
|
||||
@Column(name = "reg_dt", nullable = false)
|
||||
private Instant regDt;
|
||||
|
||||
|
||||
}
|
||||
@@ -75,8 +75,13 @@ public abstract class AbstractPringoSendService extends AbstractSendService {
|
||||
|
||||
return SendInternalResultDto.of(cmid, SendStatusType.STANDBY, NotihubConst.EMAIL_STANDBY);
|
||||
} else {
|
||||
PringoJsonSendRequestDto pringoReq = buildPringoSendRequest(sendEml, sendNm, msgTitle,
|
||||
msgBody, dest);
|
||||
PringoJsonSendRequestDto pringoReq = buildPringoSendRequest(
|
||||
sendEml,
|
||||
sendNm,
|
||||
msgTitle,
|
||||
msgBody,
|
||||
dest
|
||||
);
|
||||
return sendPringoEmail(pringoReq);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user