From 030fbb6248ea33293e811ca9d0dbe68719ba6927 Mon Sep 17 00:00:00 2001 From: rjy1537 Date: Mon, 11 Nov 2024 13:31:56 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EC=B9=98=20itemReader=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/interplug/qcast/batch/master/BomConfiguration.java | 3 +-- .../interplug/qcast/batch/master/MaterialConfiguration.java | 3 +-- .../interplug/qcast/batch/system/AdminUserConfiguration.java | 3 +-- .../qcast/batch/system/BusinessChargerConfiguration.java | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/interplug/qcast/batch/master/BomConfiguration.java b/src/main/java/com/interplug/qcast/batch/master/BomConfiguration.java index 7cb2bfb8..08320de1 100644 --- a/src/main/java/com/interplug/qcast/batch/master/BomConfiguration.java +++ b/src/main/java/com/interplug/qcast/batch/master/BomConfiguration.java @@ -14,7 +14,6 @@ import org.springframework.batch.core.job.builder.JobBuilder; import org.springframework.batch.core.repository.JobRepository; import org.springframework.batch.core.step.builder.StepBuilder; import org.springframework.batch.item.ItemProcessor; -import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.beans.factory.annotation.Value; @@ -58,7 +57,7 @@ public class BomConfiguration implements JobExecutionListener { @Bean @StepScope - public ItemReader bomReader() throws Exception { + public ListItemReader bomReader() throws Exception { this.bomSyncList = interfaceQsp.callApiData( HttpMethod.GET, qspInterfaceUrl, null, new TypeReference>() {}); diff --git a/src/main/java/com/interplug/qcast/batch/master/MaterialConfiguration.java b/src/main/java/com/interplug/qcast/batch/master/MaterialConfiguration.java index 04212798..de859cbf 100644 --- a/src/main/java/com/interplug/qcast/batch/master/MaterialConfiguration.java +++ b/src/main/java/com/interplug/qcast/batch/master/MaterialConfiguration.java @@ -15,7 +15,6 @@ import org.springframework.batch.core.job.builder.JobBuilder; import org.springframework.batch.core.repository.JobRepository; import org.springframework.batch.core.step.builder.StepBuilder; import org.springframework.batch.item.ItemProcessor; -import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.beans.factory.annotation.Value; @@ -59,7 +58,7 @@ public class MaterialConfiguration implements JobExecutionListener { @Bean @StepScope - public ItemReader materialReader() throws Exception { + public ListItemReader materialReader() throws Exception { ItemSyncRequest itemSyncRequest = new ItemSyncRequest(); itemSyncRequest.setAllYn("N"); this.itemSyncList = diff --git a/src/main/java/com/interplug/qcast/batch/system/AdminUserConfiguration.java b/src/main/java/com/interplug/qcast/batch/system/AdminUserConfiguration.java index a540f299..15d71ffd 100644 --- a/src/main/java/com/interplug/qcast/batch/system/AdminUserConfiguration.java +++ b/src/main/java/com/interplug/qcast/batch/system/AdminUserConfiguration.java @@ -14,7 +14,6 @@ import org.springframework.batch.core.job.builder.JobBuilder; import org.springframework.batch.core.repository.JobRepository; import org.springframework.batch.core.step.builder.StepBuilder; import org.springframework.batch.item.ItemProcessor; -import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.beans.factory.annotation.Value; @@ -58,7 +57,7 @@ public class AdminUserConfiguration implements JobExecutionListener { @Bean @StepScope - public ItemReader adminUserReader() throws Exception { + public ListItemReader adminUserReader() throws Exception { this.adminUserSyncList = interfaceQsp.callApiData( HttpMethod.GET, diff --git a/src/main/java/com/interplug/qcast/batch/system/BusinessChargerConfiguration.java b/src/main/java/com/interplug/qcast/batch/system/BusinessChargerConfiguration.java index 23376cda..4fc5c61a 100644 --- a/src/main/java/com/interplug/qcast/batch/system/BusinessChargerConfiguration.java +++ b/src/main/java/com/interplug/qcast/batch/system/BusinessChargerConfiguration.java @@ -14,7 +14,6 @@ import org.springframework.batch.core.job.builder.JobBuilder; import org.springframework.batch.core.repository.JobRepository; import org.springframework.batch.core.step.builder.StepBuilder; import org.springframework.batch.item.ItemProcessor; -import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemWriter; import org.springframework.batch.item.support.ListItemReader; import org.springframework.beans.factory.annotation.Value; @@ -58,7 +57,7 @@ public class BusinessChargerConfiguration implements JobExecutionListener { @Bean @StepScope - public ItemReader businessChargerReader() throws Exception { + public ListItemReader businessChargerReader() throws Exception { this.businessChargerSyncList = interfaceQsp.callApiData( HttpMethod.GET,