feat: 카카오톡 반영

main
Jonguk. Lim 2 months ago
parent 062b5fd06a
commit 1c53ef9622

@ -1,22 +1,28 @@
package cokr.xit.ens.core.model;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.code.BillSeCd;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.code.BillSeCd;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Builder
@Getter
@Setter
@Schema(name = "EnsBillAcptReqDTO")
@NoArgsConstructor
@AllArgsConstructor
public class EnsBillAcptReqDTO {
// @NotNull(message = "청구서ID 사용 여부는 필수 입력값 입니다.")

@ -131,20 +131,20 @@ public class IntgrnNotiAcceptor implements EnsPhaseProcSupport<EnsResponseVO, In
if (!CmmnUtil.isEmpty(document.getAcpt_data().getKko_talk())) {
if (!CmmnUtil.isEmpty(document.getAcpt_data().getKko_talk().getReadExpiresAt())) {
if(document.getAcpt_data().getKko_talk().getReviewExpiresAt().compareTo(document.getAcpt_data().getKko_talk().getReadExpiresAt()) < 0){
result.add(String.format("재열람 만료일시가 최초 열람 만료일시 보다 느립니다. [ document[%d].acpt_data.kko_talk.review_expires_at ]", i.get()));
result.add(String.format("재열람 만료일시가 최초 열람 만료일시 보다 느립니다. [ document[%d].acpt_data.kko_talk.reviewExpiresAt ]", i.get()));
}
}
if (!CmmnUtil.isEmpty(document.getAcpt_data().getKko_talk().getReadExpiresAt())) {
String expDate = DateUtil.getTimeOfTimeT(document.getAcpt_data().getKko_talk().getReadExpiresAt(), "yyyyMMddHHmmss");
int sec = DateUtil.secByFromBetweenTo(DateUtil.toLocalDateTime(expDate), DateUtil.toLocalDateTime(reqDTO.getClose_dt()));
if (sec < 0)
result.add(String.format("마감일시보다 \"최초열람마감시간\"이 느립니다. [ document[%d].acpt_data.kko_talk.read_expires_at ]", i.get()));
result.add(String.format("마감일시보다 \"최초열람마감시간\"이 느립니다. [ document[%d].acpt_data.kko_talk.readExpiresAt ]", i.get()));
}
if (!CmmnUtil.isEmpty(document.getAcpt_data().getKko_talk().getReviewExpiresAt())) {
String expDate = DateUtil.getTimeOfTimeT(document.getAcpt_data().getKko_talk().getReviewExpiresAt(), "yyyyMMddHHmmss");
int sec = DateUtil.secByFromBetweenTo(DateUtil.toLocalDateTime(expDate), DateUtil.toLocalDateTime(reqDTO.getClose_dt()));
if (sec < 0)
result.add(String.format("마감일시보다 \"재열람마감시간\"이 느립니다. [ document[%d].acpt_data.kko_talk.review_expires_at ]", i.get()));
result.add(String.format("마감일시보다 \"재열람마감시간\"이 느립니다. [ document[%d].acpt_data.kko_talk.reviewExpiresAt ]", i.get()));
}
}

@ -116,6 +116,7 @@ public class KkotalkDTO extends KkotalkApiDTO {
@Data
@Schema(name = "KkoTalkAcceptReqDTO")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public static class KkoTalkAcceptReqDTO extends EnsAcceptReqDTO {
@ -127,6 +128,7 @@ public class KkotalkDTO extends KkotalkApiDTO {
@Data
@Schema(name = "SendDetailKkoTalkDTO")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public static class SendDetailKkoTalkDTO extends Envelope {
private String envelopeId;

@ -119,13 +119,13 @@ public class KkoTalkAcceptor implements EnsPhaseProcSupport<EnsResponseVO<?>, Kk
String expDate = DateUtil.getTimeOfTimeT(document.getReadExpiresAt(), "yyyyMMddHHmmss");
int sec = DateUtil.secByFromBetweenTo(DateUtil.toLocalDateTime(expDate), DateUtil.toLocalDateTime(reqDTO.getClose_dt()));
if (sec < 0)
result.add(String.format("마감일시보다 \"처리마감시간\"이 느립니다. [ document[%d].acpt_data.kko_talk.read_expires_at ]", i.get()));
result.add(String.format("마감일시보다 \"최초열람 마감시간\"이 느립니다. [ document[%d].acpt_data.kko_talk.readExpiresAt ]", i.get()));
}
if (!CmmnUtil.isEmpty(document.getReviewExpiresAt())) {
String expDate = DateUtil.getTimeOfTimeT(document.getReviewExpiresAt(), "yyyyMMddHHmmss");
int sec = DateUtil.secByFromBetweenTo(DateUtil.toLocalDateTime(expDate), DateUtil.toLocalDateTime(reqDTO.getClose_dt()));
if (sec < 0)
result.add(String.format("마감일시보다 \"처리마감시간\"이 느립니다. [ document[%d].acpt_data.kko_talk.read_expires_at ]", i.get()));
result.add(String.format("마감일시보다 \"재열람 만료일시\"가 느립니다. [ document[%d].acpt_data.kko_talk.readExpiresAt ]", i.get()));
}
}
i.getAndIncrement();

@ -37,7 +37,7 @@
#{payload},
#{readExpiresAt},
#{reviewExpiresAt},
#{useNonPersonalizedNoti},
#{useNonPersonalizedNotification},
#{ci},
#{phoneNumber},
#{name},
@ -61,7 +61,7 @@
payload,
read_expires_at,
review_expires_at,
use_non_personalized_noti,
use_non_personalized_noti AS useNonPersonalizedNotification,
ci,
phone_number,
name,

Loading…
Cancel
Save