From 8a1b95a63e6e296374d5f07b1cc009d7dd4a0fb1 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Mon, 9 Sep 2024 10:53:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=ED=86=A1=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=98=EC=98=81=20-=20send=20=20=20=20?= =?UTF-8?q?=20=20=20-=20history?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/SendDetailKkoTalkReqHist.java | 67 +++++++++++++ .../domain/SendDetailKkoTalkStatHist.java | 97 +++++++++++++++++++ .../domain/SendDetailKkoTalkTokenHist.java | 91 +++++++++++++++++ .../SendDetailKkoTalkReqHistRepository.java | 11 +++ ...endDetailKkoTalkReqHistRepositoryImpl.java | 16 +++ .../SendDetailKkoTalkStatHistRepository.java | 11 +++ ...ndDetailKkoTalkStatHistRepositoryImpl.java | 16 +++ .../SendDetailKkoTalkTokenHistRepository.java | 11 +++ ...dDetailKkoTalkTokenHistRepositoryImpl.java | 16 +++ 9 files changed, 336 insertions(+) create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkReqHist.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkStatHist.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkTokenHist.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepository.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepositoryImpl.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepository.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepositoryImpl.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepository.java create mode 100644 src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepositoryImpl.java diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkReqHist.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkReqHist.java new file mode 100644 index 0000000..5f765bb --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkReqHist.java @@ -0,0 +1,67 @@ +package cokr.xit.ens.modules.kkotalk.domain; + +import java.time.*; + +import javax.persistence.Entity; +import javax.persistence.Index; +import javax.persistence.Table; +import javax.persistence.*; + +import org.hibernate.annotations.*; + +import cokr.xit.ens.modules.common.domain.support.*; +import lombok.*; + +@Entity +@Getter +@ToString +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Table(name = "ens_snd_dtl_kko_talk_req_his", indexes = { + @Index(name = "idx_snd_dtl_kko_talk_req_his_01", columnList = "regist_dt") +}) +public class SendDetailKkoTalkReqHist { + + @Id +// @GeneratedValue(strategy=GenerationType.AUTO) + @GeneratedValue(strategy = GenerationType.TABLE, generator = "SendDetailKkoTalkReqHist_Generator") + @TableGenerator(table = "ens_seq_generator", name = "SendDetailKkoTalkReqHist_Generator" + , pkColumnName = "seq_name", pkColumnValue = "SendDetailKkoTalkReqHist_id" + , initialValue = 0, allocationSize = 200) + + private Long id; + + +// @JoinColumn(name = "send_mast_id") + +// private SendMast sendMast; + + @Column(name = "send_detail_id", nullable = true) + private Long sendDetailId; + + + @Column(name = "send_raw_msg", nullable = false, length = 4000) + private String sendRawMsg; + + + @Column(name = "external_id", nullable = true) + private String externalId; + + + @Column(name = "envelope_id", nullable = true) + private String envelopeId; + + + @Column(name = "resp_raw_msg", nullable = true, length = 1000) + private String respRawMsg; + + @CreationTimestamp + @Column(name = "regist_dt", nullable = true) + private LocalDateTime registDt; + + @Embedded + @Setter + private FieldError error; + +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkStatHist.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkStatHist.java new file mode 100644 index 0000000..b66d233 --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkStatHist.java @@ -0,0 +1,97 @@ +package cokr.xit.ens.modules.kkotalk.domain; + +import java.time.*; + +import javax.persistence.Entity; +import javax.persistence.Index; +import javax.persistence.Table; +import javax.persistence.*; + +import org.hibernate.annotations.*; + +import cokr.xit.ens.modules.common.domain.support.*; +import lombok.*; + +@Entity +@Getter +@ToString +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Table(name = "ens_snd_dtl_kko_talk_stat_his", indexes = { + @Index(name = "idx_snd_dtl_kko_talk_stat_his_01", columnList = "regist_dt") +}) +public class SendDetailKkoTalkStatHist { + + @Id +// @GeneratedValue(strategy=GenerationType.AUTO) + @GeneratedValue(strategy = GenerationType.TABLE, generator = "SendDetailKkoTalkStatHist_Generator") + @TableGenerator(table = "ens_seq_generator", name = "SendDetailKkoTalkStatHist_Generator" + , pkColumnName = "seq_name", pkColumnValue = "SendDetailKkoTalkStatHist_id" + , initialValue = 0, allocationSize = 200) + private Long id; + + + @Column(name = "send_detail_id", nullable = false) + private Long sendDetailId; + + + @Column(name = "envelope_id", nullable = true) + private String envelope_id; + + + @Column(name = "external_id", nullable = true) + @Setter + private String externalId; + + +// @Column(name = "resp_raw_msg", nullable = true, length = 1000) +// private String respRawMsg; + + + @Column(name = "status", nullable = true) +// @Enumerated(EnumType.STRING) + private String status; + + + @Column(name = "sent_at", nullable = true) + private String sentAt; + + + @Column(name = "received_at", nullable = true) + private String receivedAt; + + + @Column(name = "authenticated_at", nullable = true) + private String authenticatedAt; + + + @Column(name = "token_used_at", nullable = true) + private Long tokenUsedAt; + + + @Column(name = "read_at", nullable = true) + private String readAt; + + + @Column(name = "user_notified_at", nullable = true) + private Long userNotifiedAt; + + + @Column(name = "distribution_received_at", nullable = true) + private String docDistributionReceivedAt;//??? + + + @Column(name = "payload", nullable = true) + private String payload; + + + @Column(name = "regist_dt", nullable = true) + @CreationTimestamp + private LocalDateTime registDt; + + @Embedded + private FieldError error; + + +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkTokenHist.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkTokenHist.java new file mode 100644 index 0000000..c1b8e95 --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/SendDetailKkoTalkTokenHist.java @@ -0,0 +1,91 @@ +package cokr.xit.ens.modules.kkotalk.domain; + +import java.time.*; + +import javax.persistence.Entity; +import javax.persistence.Index; +import javax.persistence.Table; +import javax.persistence.*; + +import org.hibernate.annotations.*; + +import cokr.xit.ens.modules.common.domain.support.*; +import lombok.*; + +@Entity +@Getter +@ToString +@Builder +@NoArgsConstructor +@AllArgsConstructor +@Table(name = "ens_snd_dtl_kko_talk_ott_his", indexes = { + @Index(name = "idx_snd_dtl_kko_talk_ott_his_01", columnList = "regist_dt") +}) +public class SendDetailKkoTalkTokenHist { + + @Id +// @GeneratedValue(strategy=GenerationType.AUTO) + @GeneratedValue(strategy = GenerationType.TABLE, generator = "SendDetailKkoTalkTokenHist_Generator") + @TableGenerator(table = "ens_seq_generator", name = "SendDetailKkoTalkTokenHist_Generator" + , pkColumnName = "seq_name", pkColumnValue = "SendDetailKkoTalkTokenHist_id" + , initialValue = 0, allocationSize = 200) + private Long id; + + + @Column(name = "envelope_id", nullable = true) + private String envelopeId; + + + @Column(name = "external_id", nullable = true) + private String externalId; + + + @Column(name = "token", nullable = true) + private String token; + + + @Column(name = "token_status", nullable = true) + private String tokenStatus; + + + @Column(name = "token_expires_at", nullable = true) + private String tokenExpiresAt; + + + @Column(name = "token_used_at", nullable = true) + private String tokenUsedAt; + + + @Column(name = "sent_at", nullable = true) + private String sentAt; + + + @Column(name = "received_at", nullable = true) + private String receivedAt; + + + @Column(name = "authenticated_at", nullable = true) + private String authenticatedAt; + + + @Column(name = "user_notified_at", nullable = true) + private String userNotifiedAt; + + + @Column(name = "payload", nullable = true) + private String payload; + + + @Column(name = "signed_at", nullable = true) + private String signedAt; + + + @Column(name = "regist_dt", nullable = true) + @CreationTimestamp + private LocalDateTime registDt; + + @Embedded + private FieldError error; + + +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepository.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepository.java new file mode 100644 index 0000000..c21d07b --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepository.java @@ -0,0 +1,11 @@ +package cokr.xit.ens.modules.kkotalk.domain.repository; + +import org.springframework.data.jpa.repository.*; + +import cokr.xit.ens.modules.common.biztmplt.*; +import cokr.xit.ens.modules.kkotalk.domain.*; + +public interface SendDetailKkoTalkReqHistRepository + extends JpaRepository, CleanRepositorySupport { + +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepositoryImpl.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepositoryImpl.java new file mode 100644 index 0000000..e8eb790 --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkReqHistRepositoryImpl.java @@ -0,0 +1,16 @@ +package cokr.xit.ens.modules.kkotalk.domain.repository; + +import javax.persistence.*; + +import cokr.xit.ens.modules.common.biztmplt.*; +import cokr.xit.ens.modules.common.code.*; + +public class SendDetailKkoTalkReqHistRepositoryImpl implements CleanRepositorySupport { + @PersistenceContext + private EntityManager em; + + @Override + public void truncate() { + em.createNativeQuery("truncate table " + UseNativeQuery.SendDetailKkoTalkReqHist.getTblNm()).executeUpdate(); + } +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepository.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepository.java new file mode 100644 index 0000000..f73ef01 --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepository.java @@ -0,0 +1,11 @@ +package cokr.xit.ens.modules.kkotalk.domain.repository; + +import org.springframework.data.jpa.repository.*; + +import cokr.xit.ens.modules.common.biztmplt.*; +import cokr.xit.ens.modules.kkotalk.domain.*; + +public interface SendDetailKkoTalkStatHistRepository + extends JpaRepository, CleanRepositorySupport { + +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepositoryImpl.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepositoryImpl.java new file mode 100644 index 0000000..6bbdc26 --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkStatHistRepositoryImpl.java @@ -0,0 +1,16 @@ +package cokr.xit.ens.modules.kkotalk.domain.repository; + +import javax.persistence.*; + +import cokr.xit.ens.modules.common.biztmplt.*; +import cokr.xit.ens.modules.common.code.*; + +public class SendDetailKkoTalkStatHistRepositoryImpl implements CleanRepositorySupport { + @PersistenceContext + private EntityManager em; + + @Override + public void truncate() { + em.createNativeQuery("truncate table " + UseNativeQuery.SendDetailKkoTalkStatHist.getTblNm()).executeUpdate(); + } +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepository.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepository.java new file mode 100644 index 0000000..d697af0 --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepository.java @@ -0,0 +1,11 @@ +package cokr.xit.ens.modules.kkotalk.domain.repository; + +import org.springframework.data.jpa.repository.*; + +import cokr.xit.ens.modules.common.biztmplt.*; +import cokr.xit.ens.modules.kkotalk.domain.*; + +public interface SendDetailKkoTalkTokenHistRepository + extends JpaRepository, CleanRepositorySupport { + +} diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepositoryImpl.java b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepositoryImpl.java new file mode 100644 index 0000000..79cb50e --- /dev/null +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/domain/repository/SendDetailKkoTalkTokenHistRepositoryImpl.java @@ -0,0 +1,16 @@ +package cokr.xit.ens.modules.kkotalk.domain.repository; + +import javax.persistence.*; + +import cokr.xit.ens.modules.common.biztmplt.*; +import cokr.xit.ens.modules.common.code.*; + +public class SendDetailKkoTalkTokenHistRepositoryImpl implements CleanRepositorySupport { + @PersistenceContext + private EntityManager em; + + @Override + public void truncate() { + em.createNativeQuery("truncate table " + UseNativeQuery.SendDetailKkoTalkTokenHist.getTblNm()).executeUpdate(); + } +}