fix: chuncheon, cheonan 패키지 적용
parent
767c6576ff
commit
5b71396f8f
Binary file not shown.
@ -0,0 +1,129 @@
|
||||
#-----------------------------------------------------------------------
|
||||
# local 설정
|
||||
#-----------------------------------------------------------------------
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
# 9 server
|
||||
primary:
|
||||
database: oracle
|
||||
driver-class-name: oracle.jdbc.OracleDriver
|
||||
jdbc-url: jdbc:oracle:thin:@211.119.124.118:1521:bustms
|
||||
username: iup
|
||||
password: iup!0202
|
||||
read-only: false
|
||||
pool-name: xit-oracle-pool
|
||||
auto-commit: false
|
||||
# 인프라의 적용된 connection time limit보다 작아야함
|
||||
max-lifetime: 1800000
|
||||
maximum-pool-size: 15
|
||||
minimum-idle: 5
|
||||
# transaction-isolation: TRANSACTION_READ_UNCOMMITTED
|
||||
data-source-properties:
|
||||
rewriteBatchedStatements: true
|
||||
|
||||
devtools:
|
||||
restart:
|
||||
enabled: true
|
||||
additional-exclude: static/**,public/**
|
||||
livereload:
|
||||
enabled: true
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: true
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: debug
|
||||
org.apache.http: warn
|
||||
io.netty: warn
|
||||
reactor.netty: WARN
|
||||
# webclient logging
|
||||
reactor.netty.http.client: DEBUG
|
||||
#org.springframework.web.reactive.function.client.ExchangeFunctions: TRACE
|
||||
org.springframework: warn
|
||||
org.hibernate.validator.internal: WARN
|
||||
file:
|
||||
# 로그파일 위치
|
||||
path: ${app.data.root.path}/mens/logs
|
||||
name: ${app.name}
|
||||
|
||||
# ==================================================================================================================
|
||||
# SQL logging lib setting
|
||||
# ==================================================================================================================
|
||||
decorator:
|
||||
datasource:
|
||||
p6spy:
|
||||
enable-logging: true
|
||||
|
||||
app:
|
||||
api-ip: 211.119.124.73
|
||||
# 강제로 swagger-url을 지정해야 하는 경우만 선언
|
||||
#swagger-url: 'http://localhost:${server.port}${server.servlet.context-path:}/'
|
||||
# Spring Security cors 설정 :: CorsConfiguration 설정 값
|
||||
cors:
|
||||
allowed-origins: http://localhost:8080, http://${app.api-ip}:8080, http://localhost:8082, http://${app.api-ip}:8082
|
||||
|
||||
data:
|
||||
root:
|
||||
#path: /Users/minuk/data
|
||||
path: d:/data
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# log 설정
|
||||
# request:
|
||||
# custom-enabled | common-enabled | filter-enabled 중 1개만 활성화
|
||||
# --> 운영: common-enabled, 개발: custom-enabled 사용 권장
|
||||
# response-enabled : 호출 결과 출력 - 운영시 false
|
||||
# mdc : api 호출(서비스) 로그 기록
|
||||
# uris : api 호출 로그 제외 패턴
|
||||
#---------------------------------------------------------------
|
||||
log:
|
||||
request:
|
||||
custom-enabled: true
|
||||
response-enabled: true
|
||||
# MDC logging trace 활성
|
||||
mdc:
|
||||
enabled: true
|
||||
|
||||
# slack
|
||||
slack-webhook:
|
||||
enabled: false
|
||||
url: https://hooks.slack.com/services/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
|
||||
|
||||
ssh:
|
||||
host: 211.119.124.9
|
||||
port: 22
|
||||
id: xituser
|
||||
passwd: xituser!@
|
||||
sg:
|
||||
root-path: /data/mens/sg-pni-cctv
|
||||
ens-path: /data/mens/sg-ens-cctv
|
||||
rcv: /rcv
|
||||
backup: /backup
|
||||
err: /err
|
||||
|
||||
contract:
|
||||
# milisecond
|
||||
connection:
|
||||
timeout: 60000
|
||||
readTimeout: 60000
|
||||
|
||||
kt:
|
||||
# vpn 사용
|
||||
#host: http://172.16.0.13:10210/ONLWeb
|
||||
host: http://211.43.10.163:10210/ONLWeb
|
||||
api:
|
||||
# 모바일페이지 : 본문자수신등록 callback url - 토큰인증확인 조회, 열람확인결과 전송
|
||||
dp-callback-url: http://${app.api-ip}:8080/api/web/mbl/v1/kt/dpMblPage.do
|
||||
me-callback-url: http://${app.api-ip}:8080/api/web/mbl/v1/kt/meMblPage.do
|
||||
#dp-callback-url: http://211.119.124.73:8081/api/biz/mbl/v1/kt/dpMblPage
|
||||
#me-callback-url: http://211.119.124.73:8081/api/biz/mbl/v1/kt/meMblPage
|
||||
|
||||
# 수신거부상태전송 : BC-AG-SN-014
|
||||
refuse-rcv: http://${app.api-ip}:8081/api/ens/kt/v1/receive/refuse
|
||||
# 수신동의상태전송 : BC-AG-SN-015
|
||||
approve-rcv: http://${app.api-ip}:8081/api/ens/kt/v1/receive/approve
|
@ -0,0 +1,130 @@
|
||||
#-----------------------------------------------------------------------
|
||||
# local 설정
|
||||
#-----------------------------------------------------------------------
|
||||
spring:
|
||||
datasource:
|
||||
hikari:
|
||||
# 9 server
|
||||
primary:
|
||||
database: mysql
|
||||
driver-class-name: org.mariadb.jdbc.Driver
|
||||
jdbc-url: jdbc:mariadb://211.119.124.117:53306/ens?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&autoReconnect=true
|
||||
username: ens
|
||||
password: xit5811807
|
||||
read-only: false
|
||||
pool-name: xit-maria-pool
|
||||
auto-commit: false
|
||||
# 인프라의 적용된 connection time limit보다 작아야함
|
||||
validation-timeout: 300000
|
||||
max-lifetime: 1800000
|
||||
maximum-pool-size: 15
|
||||
minimum-idle: 5
|
||||
#transaction-isolation: TRANSACTION_READ_UNCOMMITTED
|
||||
data-source-properties:
|
||||
rewriteBatchedStatements: true
|
||||
|
||||
devtools:
|
||||
restart:
|
||||
enabled: true
|
||||
additional-exclude: static/**,public/**
|
||||
livereload:
|
||||
enabled: true
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: true
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: debug
|
||||
org.apache.http: warn
|
||||
io.netty: warn
|
||||
reactor.netty: WARN
|
||||
# webclient logging
|
||||
reactor.netty.http.client: DEBUG
|
||||
#org.springframework.web.reactive.function.client.ExchangeFunctions: TRACE
|
||||
org.springframework: warn
|
||||
org.hibernate.validator.internal: WARN
|
||||
file:
|
||||
# 로그파일 위치
|
||||
path: ${app.data.root.path}/mens/logs
|
||||
name: ${app.name}
|
||||
|
||||
# ==================================================================================================================
|
||||
# SQL logging lib setting
|
||||
# ==================================================================================================================
|
||||
decorator:
|
||||
datasource:
|
||||
p6spy:
|
||||
enable-logging: true
|
||||
|
||||
app:
|
||||
api-ip: 211.119.124.73
|
||||
# 강제로 swagger-url을 지정해야 하는 경우만 선언
|
||||
#swagger-url: 'http://localhost:${server.port}${server.servlet.context-path:}/'
|
||||
# Spring Security cors 설정 :: CorsConfiguration 설정 값
|
||||
cors:
|
||||
allowed-origins: http://localhost:8080, http://${app.api-ip}:8080, http://localhost:8082, http://${app.api-ip}:8082
|
||||
|
||||
data:
|
||||
root:
|
||||
#path: /Users/minuk/data
|
||||
path: d:/data
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# log 설정
|
||||
# request:
|
||||
# custom-enabled | common-enabled | filter-enabled 중 1개만 활성화
|
||||
# --> 운영: common-enabled, 개발: custom-enabled 사용 권장
|
||||
# response-enabled : 호출 결과 출력 - 운영시 false
|
||||
# mdc : api 호출(서비스) 로그 기록
|
||||
# uris : api 호출 로그 제외 패턴
|
||||
#---------------------------------------------------------------
|
||||
log:
|
||||
request:
|
||||
custom-enabled: true
|
||||
response-enabled: true
|
||||
# MDC logging trace 활성
|
||||
mdc:
|
||||
enabled: true
|
||||
|
||||
# slack
|
||||
slack-webhook:
|
||||
enabled: false
|
||||
url: https://hooks.slack.com/services/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
|
||||
|
||||
ssh:
|
||||
host: 211.119.124.9
|
||||
port: 22
|
||||
id: xituser
|
||||
passwd: xituser!@
|
||||
sg:
|
||||
root-path: /data/mens/sg-pni-cctv
|
||||
ens-path: /data/mens/sg-ens-cctv
|
||||
rcv: /rcv
|
||||
backup: /backup
|
||||
err: /err
|
||||
|
||||
contract:
|
||||
# milisecond
|
||||
connection:
|
||||
timeout: 60000
|
||||
readTimeout: 60000
|
||||
|
||||
kt:
|
||||
# vpn 사용
|
||||
#host: http://172.16.0.13:10210/ONLWeb
|
||||
host: http://211.43.10.163:10210/ONLWeb
|
||||
api:
|
||||
# 모바일페이지 : 본문자수신등록 callback url - 토큰인증확인 조회, 열람확인결과 전송
|
||||
dp-callback-url: http://${app.api-ip}:8080/api/web/mbl/v1/kt/dpMblPage.do
|
||||
me-callback-url: http://${app.api-ip}:8080/api/web/mbl/v1/kt/meMblPage.do
|
||||
#dp-callback-url: http://211.119.124.73:8081/api/biz/mbl/v1/kt/dpMblPage
|
||||
#me-callback-url: http://211.119.124.73:8081/api/biz/mbl/v1/kt/meMblPage
|
||||
|
||||
# 수신거부상태전송 : BC-AG-SN-014
|
||||
refuse-rcv: http://${app.api-ip}:8081/api/ens/kt/v1/receive/refuse
|
||||
# 수신동의상태전송 : BC-AG-SN-015
|
||||
approve-rcv: http://${app.api-ip}:8081/api/ens/kt/v1/receive/approve
|
@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="kr.xit.ens.pplus.mapper.IPplusMapper">
|
||||
|
||||
<select id="selectPostPlusSendTgts" resultType="kr.xit.biz.ens.model.pplus.PplusDTO$BatchAcceptRequest">
|
||||
/** ens-pplus-mapper|selectPostPlusSendTgts-Post Plus 발송 대상 목록 조회|julim */
|
||||
SELECT tesm.unity_sndng_mastr_id
|
||||
, tesm.sndng_mastr_id
|
||||
, CASE WHEN tesm.try_seq = tesm.try_cnt THEN 'send-ok'
|
||||
ELSE concat('sending', try_seq)
|
||||
END AS sndngProcessSttus
|
||||
, tepp.sndng_detail_id
|
||||
, tepp.unity_sndng_detail_id
|
||||
, tepp.signgu_code
|
||||
, tepp.ffnlg_code
|
||||
, tepp.service_cd
|
||||
, tepp.con_key
|
||||
, teppj.master_cols
|
||||
, teppj.master_rows
|
||||
, teppj.detail_cols
|
||||
, teppj.detail_rows
|
||||
FROM tb_ens_sndng_mastr tesm
|
||||
JOIN tb_ens_post_plus tepp
|
||||
ON tesm.sndng_mastr_id=tepp.sndng_mastr_id
|
||||
AND tesm.signgu_code = tepp.signgu_code
|
||||
AND tesm.ffnlg_code = tepp.ffnlg_code
|
||||
JOIN tb_ens_post_plus_json teppj
|
||||
ON tepp.unity_sndng_detail_id = teppj.unity_sndng_detail_id
|
||||
AND tepp.con_key = teppj.con_key
|
||||
AND tepp.sn = teppj.sn
|
||||
WHERE tepp.sndng_mastr_id = #{sndngMastrId}
|
||||
AND tesm.signgu_code = #{signguCode}
|
||||
AND tesm.ffnlg_code = #{ffnlgCode}
|
||||
ORDER BY teppj.sn
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -1,130 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="kr.xit.other.mapper.IOtherMapper">
|
||||
|
||||
<select id="selectElecnotice" resultType="kr.xit.other.model.ElecnoticeDTO$Elecnoticedtl">
|
||||
/** other-oracle-mapper|selectElecnoticemst-전자고지 파일 외부연계 마스터 조회|jhseo */
|
||||
SELECT a.unitysndngmastrid
|
||||
, a.sndngco
|
||||
, a.sndngprocesssttus
|
||||
, a.insuser
|
||||
, a.insdate
|
||||
, a.upduser
|
||||
, a.upddate
|
||||
, b.unitysndngmastrid
|
||||
, b.unitysndngdetailid
|
||||
, b.sndngdt
|
||||
, b.tmplatid
|
||||
, b.gojidepth
|
||||
, b.taxnum1
|
||||
, b.taxnum2
|
||||
, b.taxnum3
|
||||
, b.taxnum4
|
||||
, b.worker
|
||||
, b.serialno
|
||||
, b.recvdt
|
||||
, b.readdt
|
||||
, b.resultcode
|
||||
FROM elecnoticemst a
|
||||
LEFT OUTER JOIN elecnoticedtl b ON (a.unitysndngmastrid = b.unitysndngmastrid)
|
||||
WHERE 1=1
|
||||
AND a.unitysndngmastrid = #{unitysndngmastrid}
|
||||
AND b.unitysndngdetailid = #{unitysndngdetailid}
|
||||
</select>
|
||||
|
||||
<insert id="saveElecnoticemst">
|
||||
/** other-oracle-mapper|saveElecnoticemst-전자고지 파일 외부연계 마스터 Merge|jhseo */
|
||||
MERGE
|
||||
INTO elecnoticemst a
|
||||
USING dual
|
||||
ON (a.unitysndngmastrid = #{unitysndngmastrid})
|
||||
WHEN MATCHED THEN
|
||||
UPDATE
|
||||
SET a.sndngco = #{sndngco}
|
||||
, a.sndngprocesssttus = #{sndngprocesssttus}
|
||||
, a.sndngdt = TO_DATE(#{sndngdt},'YYYYMMDDHH24MISS')
|
||||
, a.tmplatid = #{tmplatid}
|
||||
, a.message = SUBSTRB(#{message}, 1, 100)
|
||||
, a.upduser = #{upduser}
|
||||
, a.upddate = sysdate
|
||||
WHEN NOT MATCHED THEN
|
||||
INSERT (a.unitysndngmastrid
|
||||
, a.sndngco
|
||||
, a.sndngprocesssttus
|
||||
, a.insuser
|
||||
, a.insdate
|
||||
, a.sndngdt
|
||||
, a.sndngsecode
|
||||
, a.tmplatid
|
||||
, a.searchdate
|
||||
, a.success
|
||||
, a.message
|
||||
)
|
||||
VALUES (#{unitysndngmastrid}
|
||||
, #{sndngco}
|
||||
, #{sndngprocesssttus}
|
||||
, #{insuser}
|
||||
, sysdate
|
||||
, TO_DATE(#{sndngdt},'YYYYMMDDHH24MISS')
|
||||
, #{sndngsecode}
|
||||
, #{tmplatid}
|
||||
, TO_DATE(#{searchdate},'YYYYMMDDHH24MISS')
|
||||
, #{success}
|
||||
, SUBSTRB(#{message}, 1, 100)
|
||||
)
|
||||
|
||||
</insert>
|
||||
|
||||
<insert id="saveElecnoticedtl">
|
||||
/** other-oracle-mapper|saveElecnoticedtl-전자고지 파일 외부연계 상세 Merge|jhseo */
|
||||
MERGE
|
||||
INTO elecnoticedtl b
|
||||
USING dual
|
||||
ON (b.unitysndngmastrid = #{unitysndngmastrid} AND b.unitysndngdetailid = #{unitysndngdetailid})
|
||||
WHEN MATCHED THEN
|
||||
UPDATE
|
||||
SET b.tmplatid = #{tmplatid}
|
||||
, b.recvdt = TO_DATE(#{recvdt},'YYYYMMDDHH24MISS')
|
||||
, b.readdt = TO_DATE(#{readdt},'YYYYMMDDHH24MISS')
|
||||
, b.resultcode = #{resultcode}
|
||||
, b.upduser = #{upduser}
|
||||
, b.upddate = sysdate
|
||||
WHEN NOT MATCHED THEN
|
||||
INSERT (b.unitysndngmastrid
|
||||
, b.unitysndngdetailid
|
||||
, b.sndngdt
|
||||
, b.tmplatid
|
||||
, b.gojidepth
|
||||
, b.taxnum1
|
||||
, b.taxnum2
|
||||
, b.taxnum3
|
||||
, b.taxnum4
|
||||
, b.worker
|
||||
, b.serialno
|
||||
, b.recvdt
|
||||
, b.readdt
|
||||
, b.resultcode
|
||||
, b.insuser
|
||||
, b.insdate
|
||||
)
|
||||
VALUES (#{unitysndngmastrid}
|
||||
, #{unitysndngdetailid}
|
||||
, TO_DATE(#{sndngdt},'YYYYMMDDHH24MISS')
|
||||
, #{tmplatid}
|
||||
, #{gojidepth}
|
||||
, #{taxnum1}
|
||||
, #{taxnum2}
|
||||
, #{taxnum3}
|
||||
, #{taxnum4}
|
||||
, #{worker}
|
||||
, #{serialno}
|
||||
, TO_DATE(#{recvdt},'YYYYMMDDHH24MISS')
|
||||
, TO_DATE(#{readdt},'YYYYMMDDHH24MISS')
|
||||
, #{resultcode}
|
||||
, #{insuser}
|
||||
, sysdate
|
||||
)
|
||||
</insert>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,20 @@
|
||||
package kr.xit.core.spring.config.support;
|
||||
|
||||
import org.springframework.context.annotation.Condition;
|
||||
import org.springframework.context.annotation.ConditionContext;
|
||||
import org.springframework.core.type.AnnotatedTypeMetadata;
|
||||
|
||||
import lombok.NonNull;
|
||||
|
||||
public class ProfileConditionOfCheonan implements Condition {
|
||||
@Override
|
||||
public boolean matches(ConditionContext context, @NonNull AnnotatedTypeMetadata metadata) {
|
||||
String[] activeProfiles = context.getEnvironment().getActiveProfiles();
|
||||
for (String profile : activeProfiles) {
|
||||
if (profile.matches(".*cheonan.*")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package kr.xit.core.spring.config.support;
|
||||
|
||||
import org.springframework.context.annotation.Condition;
|
||||
import org.springframework.context.annotation.ConditionContext;
|
||||
import org.springframework.core.type.AnnotatedTypeMetadata;
|
||||
|
||||
import lombok.NonNull;
|
||||
|
||||
public class ProfileConditionOfChuncheon implements Condition {
|
||||
@Override
|
||||
public boolean matches(ConditionContext context, @NonNull AnnotatedTypeMetadata metadata) {
|
||||
String[] activeProfiles = context.getEnvironment().getActiveProfiles();
|
||||
for (String profile : activeProfiles) {
|
||||
if (profile.matches(".*chuncheon.*")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package kr.xit.core.spring.config.support;
|
||||
|
||||
import org.springframework.context.annotation.Condition;
|
||||
import org.springframework.context.annotation.ConditionContext;
|
||||
import org.springframework.core.type.AnnotatedTypeMetadata;
|
||||
|
||||
import lombok.NonNull;
|
||||
|
||||
public class ProfileConditionOfSisul implements Condition {
|
||||
@Override
|
||||
public boolean matches(ConditionContext context, @NonNull AnnotatedTypeMetadata metadata) {
|
||||
String[] activeProfiles = context.getEnvironment().getActiveProfiles();
|
||||
for (String profile : activeProfiles) {
|
||||
if (profile.matches(".*sisul.*")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue