From 062b5fd06a6dcf893f799e9bfa07b41d3b72e6ac Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 4 Sep 2024 17:56:44 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=ED=86=A1=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/ens/core/init/InitJpaRunner.java | 19 ++++++----- .../cokr/xit/ens/core/init/JpaRunner.java | 34 +++++++++++-------- 2 files changed, 30 insertions(+), 23 deletions(-) diff --git a/src/main/java/cokr/xit/ens/core/init/InitJpaRunner.java b/src/main/java/cokr/xit/ens/core/init/InitJpaRunner.java index d825e84..7e8fea8 100644 --- a/src/main/java/cokr/xit/ens/core/init/InitJpaRunner.java +++ b/src/main/java/cokr/xit/ens/core/init/InitJpaRunner.java @@ -1,5 +1,14 @@ package cokr.xit.ens.core.init; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.ApplicationArguments; +import org.springframework.boot.ApplicationRunner; + import cokr.xit.ens.core.aop.EnsResponseVO; import cokr.xit.ens.modules.common.code.PostSeCd; import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.TmpltMngIntgrnDTO; @@ -12,14 +21,6 @@ import cokr.xit.ens.modules.ktsigntalk.common.code.MTypeCd; import cokr.xit.ens.modules.ktsigntalk.direct.model.TmpltMngKtSigntalkDTO; import cokr.xit.ens.modules.ktsigntalk.gibis.model.TmpltMngKtGibisDTO; import cokr.xit.ens.modules.nvsigntalk.model.TmpltMngNvSigntalkDTO; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.ApplicationArguments; -import org.springframework.boot.ApplicationRunner; - -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; public abstract class InitJpaRunner implements ApplicationRunner { @@ -229,4 +230,4 @@ public abstract class InitJpaRunner implements ApplicationRunner { } -} \ No newline at end of file +} diff --git a/src/main/java/cokr/xit/ens/core/init/JpaRunner.java b/src/main/java/cokr/xit/ens/core/init/JpaRunner.java index e00eb14..e92f165 100644 --- a/src/main/java/cokr/xit/ens/core/init/JpaRunner.java +++ b/src/main/java/cokr/xit/ens/core/init/JpaRunner.java @@ -1,5 +1,24 @@ package cokr.xit.ens.core.init; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.UUID; +import java.util.stream.Collectors; + +import javax.persistence.EntityManager; +import javax.persistence.PersistenceContext; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.ApplicationArguments; +import org.springframework.boot.ApplicationRunner; +import org.springframework.context.annotation.Profile; +import org.springframework.transaction.annotation.Transactional; + import cokr.xit.ens.biz.iup.code.IupPrcsCd; import cokr.xit.ens.biz.iup.code.IupSendTypeCd; import cokr.xit.ens.biz.iup.domain.FsJob; @@ -14,23 +33,10 @@ import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.OrgMng; import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.TmpltMng; import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.repository.OrgMngRepository; import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.repository.TmpltMngRepository; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.ApplicationArguments; -import org.springframework.boot.ApplicationRunner; -import org.springframework.context.annotation.Profile; -import org.springframework.transaction.annotation.Transactional; - -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; -import java.text.SimpleDateFormat; -import java.time.LocalDate; -import java.time.LocalDateTime; -import java.util.*; -import java.util.stream.Collectors; //@Component @Transactional -@Profile({"local", "local-maria", "local-oracle"}) +@Profile({"local"}) public class JpaRunner implements ApplicationRunner { @PersistenceContext