Merge Q-CAST-III-MR-257: 배치 itemReader 변경
This commit is contained in:
commit
d5245ccd1f
@ -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<BomSyncResponse> bomReader() throws Exception {
|
||||
public ListItemReader<BomSyncResponse> bomReader() throws Exception {
|
||||
this.bomSyncList =
|
||||
interfaceQsp.callApiData(
|
||||
HttpMethod.GET, qspInterfaceUrl, null, new TypeReference<List<BomSyncResponse>>() {});
|
||||
|
||||
@ -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<ItemSyncResponse> materialReader() throws Exception {
|
||||
public ListItemReader<ItemSyncResponse> materialReader() throws Exception {
|
||||
ItemSyncRequest itemSyncRequest = new ItemSyncRequest();
|
||||
itemSyncRequest.setAllYn("N");
|
||||
this.itemSyncList =
|
||||
|
||||
@ -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<AdminUserSyncResponse> adminUserReader() throws Exception {
|
||||
public ListItemReader<AdminUserSyncResponse> adminUserReader() throws Exception {
|
||||
this.adminUserSyncList =
|
||||
interfaceQsp.callApiData(
|
||||
HttpMethod.GET,
|
||||
|
||||
@ -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<BusinessChargerSyncResponse> businessChargerReader() throws Exception {
|
||||
public ListItemReader<BusinessChargerSyncResponse> businessChargerReader() throws Exception {
|
||||
this.businessChargerSyncList =
|
||||
interfaceQsp.callApiData(
|
||||
HttpMethod.GET,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user