|
|
@ -1,5 +1,24 @@
|
|
|
|
package cokr.xit.ens.core.init;
|
|
|
|
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.IupPrcsCd;
|
|
|
|
import cokr.xit.ens.biz.iup.code.IupSendTypeCd;
|
|
|
|
import cokr.xit.ens.biz.iup.code.IupSendTypeCd;
|
|
|
|
import cokr.xit.ens.biz.iup.domain.FsJob;
|
|
|
|
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.TmpltMng;
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.repository.OrgMngRepository;
|
|
|
|
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 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
|
|
|
|
//@Component
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
@Profile({"local", "local-maria", "local-oracle"})
|
|
|
|
@Profile({"local"})
|
|
|
|
public class JpaRunner implements ApplicationRunner {
|
|
|
|
public class JpaRunner implements ApplicationRunner {
|
|
|
|
|
|
|
|
|
|
|
|
@PersistenceContext
|
|
|
|
@PersistenceContext
|
|
|
|