파일작업, 스케쥴 설정 관련 수정

master
mjkhan21 11 months ago
parent da2500599b
commit 4ba4cb69ab

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="lntris">
<property name="resources" value="src/main/resources" />
<property name="deploy" value="deploy" />
<target name="lntris">
<copy todir="${deploy}/intf-conf">
<fileset dir="${resources}/intf-conf" />
</copy>
<copy todir="${deploy}/spring">
<fileset dir="${resources}/spring" />
</copy>
<delete file="xit-lntris-interface.zip" />
<zip destfile="xit-lntris-interface.zip" basedir="${deploy}" compress="true" />
</target>
</project>

@ -2,12 +2,13 @@ package cokr.xit.interfaces.lntris;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
import cokr.xit.foundation.boot.FoundationApplication;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
//@ImportResource("classpath:spring/context-*.xml")
@ImportResource("classpath:spring/context-*.xml")
public class LntrisInterfaceApplication extends FoundationApplication {
public static void main(String[] args) {
SpringApplication.run(LntrisInterfaceApplication.class, args);

@ -1,7 +1,7 @@
{
"dirs": {
"receive": "files/ESB_AGENT/RCV", /* 수신 파일 최상위 디렉토리 */
"send": "files/ESB_AGENT/SND", /* 전송 파일 최상위 디렉토리 */
"receive": "files/ESB_AGENT/RCV", /* 수신 파일 최상위 디렉토리 */
"send": "files/ESB_AGENT/SND", /* 전송 파일 최상위 디렉토리 */
"working": "files/interface/work", /* 파일 작업 최상위 디렉토리 */
"success": "files/interface/success", /* 작업 완료한 파일의 최상위 디렉토리 */
@ -9,7 +9,7 @@
},
"dirCodes": {
"lntris": "1741000NIS" /* 차세대 지방세외수입 시스템 */
"lntris": "1741000NIS" /* 차세대 지방세외수입 시스템 */
},
"defaults": {
@ -19,11 +19,12 @@
},
"jobs": [
/* 지방 세외수입 개별 연계*/
/* 지방 세외수입 개별 연계 */
{ /* 과태료 대장 등록자료 일괄조회(전일자 변동자료) */
"name": "lntrisA02",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 부과수납 정보(일배치) */
"name": "lntrisD02",
"dirCode": "lntris" /* <-- dirCodes */
@ -47,73 +48,6 @@
{ /* 결손정보(전일자 변동자료) */
"name": "lntrisD07e",
"dirCode": "lntris" /* <-- dirCodes */
},
/* 지방 세외수입 특화 연계*/
{ /* 체납 상세세목 */
"name": "lntrisB01",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 수납 상세정보 */
"name": "lntrisB02",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 결손 상세세목 */
"name": "lntrisB03",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 체납자 독려정보 */
"name": "lntrisB04",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 압류정보 */
"name": "lntrisB05",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 압류시점 체납정보 */
"name": "lntrisB06",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 과오납 상세정보 */
"name": "lntrisB07",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 영치정보 */
"name": "lntrisB08",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 고지발송정보 */
"name": "lntrisB09",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 우편발송결과정보 */
"name": "lntrisB10",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 과태료대장 목록 */
"name": "lntrisB11",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 과태료대장 상세 목록 */
"name": "lntrisB12",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 주정차위반 과태료대장 목록 */
"name": "lntrisB13",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 주정차위반 과태료대장 상세 */
"name": "lntrisB14",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 전용차로위반 과태료대장 목록 */
"name": "lntrisB15",
"dirCode": "lntris" /* <-- dirCodes */
},
{ /* 전용차료위반 과태료대장 상세 */
"name": "lntrisB16",
"dirCode": "lntris" /* <-- dirCodes */
}
]
}

@ -1,5 +1,5 @@
{
"useDatabase": false,
"useDatabase": false, /* 데이터베이스 사용여부 */
"locals": [
{"organization": "4060000", /* 지역 자치단체 코드(7자리) */

@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<!-- 과태료대장 전일자변동 수신 -->
<bean id="a02Receiver" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="lntrisAService"/>
<property name="targetMethod" value="readA02s"/>
</bean>
<bean id="a02ReceiverTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="a02Receiver" />
<property name="cronExpression" value="0 0/1 * * * ?" /> <!-- 1분마다 -->
<!-- <property name="cronExpression" value="0 30 0 * * ?" /> 매일 00:30 -->
</bean>
<!-- 부과/수납정보 -->
<bean id="d02Sender" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="lntrisDService"/>
<property name="targetMethod" value="registerD02s"/>
</bean>
<bean id="d02SenderTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="d02Sender" />
<property name="cronExpression" value="0 0/1 * * * ?" /> <!-- 1분마다 -->
<!-- <property name="cronExpression" value="0 30 0 * * ?" /> 매일 00:30 -->
</bean>
<!-- 부과체납 전일자변동 수신 -->
<bean id="d07aReceiver" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="lntrisDService"/>
<property name="targetMethod" value="readD07as"/>
</bean>
<bean id="d07aReceiverTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="d07aReceiver" />
<property name="cronExpression" value="0 0/1 * * * ?" /> <!-- 1분마다 -->
<!-- <property name="cronExpression" value="0 30 0 * * ?" /> 매일 00:30 -->
</bean>
<!-- 수납 전일자변동 수신 -->
<bean id="d07bReceiver" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="lntrisDService"/>
<property name="targetMethod" value="readD07bs"/>
</bean>
<bean id="d07bReceiverTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="d07bReceiver" />
<property name="cronExpression" value="0 0/1 * * * ?" /> <!-- 1분마다 -->
<!-- <property name="cronExpression" value="0 30 0 * * ?" /> 매일 00:30 -->
</bean>
<!-- 감액 전일자변동 수신 -->
<bean id="d07cReceiver" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="lntrisDService"/>
<property name="targetMethod" value="readD07cs"/>
</bean>
<bean id="d07cReceiverTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="d07cReceiver" />
<property name="cronExpression" value="0 0/1 * * * ?" /> <!-- 1분마다 -->
<!-- <property name="cronExpression" value="0 30 0 * * ?" /> 매일 00:30 -->
</bean>
<!-- 과오납 전일자변동 수신 -->
<bean id="d07dReceiver" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="lntrisDService"/>
<property name="targetMethod" value="readD07ds"/>
</bean>
<bean id="d07dReceiverTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="d07dReceiver" />
<property name="cronExpression" value="0 0/1 * * * ?" /> <!-- 1분마다 -->
<!-- <property name="cronExpression" value="0 30 0 * * ?" /> 매일 00:30 -->
</bean>
<!-- 결손 전일자변동 수신 -->
<bean id="d07eReceiver" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="lntrisDService"/>
<property name="targetMethod" value="readD07es"/>
</bean>
<bean id="d07eReceiverTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="d07eReceiver" />
<property name="cronExpression" value="0 0/1 * * * ?" /> <!-- 1분마다 -->
<!-- <property name="cronExpression" value="0 30 0 * * ?" /> 매일 00:30 -->
</bean>
<bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="jobDetails">
<list>
<ref bean="a02Receiver" />
<ref bean="d02Sender" />
<ref bean="d07aReceiver" />
<ref bean="d07bReceiver" />
<ref bean="d07cReceiver" />
<ref bean="d07dReceiver" />
<ref bean="d07eReceiver" />
</list>
</property>
<property name="triggers">
<list>
<ref bean="a02ReceiverTrigger" />
<ref bean="d02SenderTrigger" />
<ref bean="d07aReceiverTrigger" />
<ref bean="d07bReceiverTrigger" />
<ref bean="d07cReceiverTrigger" />
<ref bean="d07dReceiverTrigger" />
<ref bean="d07eReceiverTrigger" />
</list>
</property>
</bean>
</beans>
Loading…
Cancel
Save