2017-08-04 74 views

回答

0

RepositoryItemReader repositoryReport =新RepositoryItemReader(); repositoryReport.setRepository(memberDemoGraphicsRepository); //庫類refferance

repositoryReport.setMethodName("getMemberDemoGraphicByGroupID");//repository method 
    List<Long> groupIDs = groupDemogrRepository.getValidGroups(); 
    for (Long id : groupIDs) { 
     List<Long> parameters = new ArrayList<>() ; 
     parameters.add(id); 
     setAgrguments(parameters); 
    } 

    repositoryReport.setArguments(getAgrguments());// Mehtod Arguments 
+0

可我知道如何使用RepositoryItemWriter, – Angel