reports-service поправил тип ReportDataCollector
This commit is contained in:
parent
47df118474
commit
8f79cf6056
5 changed files with 10 additions and 8 deletions
|
|
@ -11,7 +11,7 @@ import java.time.ZoneId;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public abstract class ReportDataCollector<T extends AbstractReport, R> {
|
public abstract class ReportDataCollector<T extends AbstractReport> {
|
||||||
public static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("dd.MM.yyyy");
|
public static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("dd.MM.yyyy");
|
||||||
public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("dd.MM.yyyy'T'HH:mm:ss");
|
public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("dd.MM.yyyy'T'HH:mm:ss");
|
||||||
|
|
||||||
|
|
@ -22,7 +22,7 @@ public abstract class ReportDataCollector<T extends AbstractReport, R> {
|
||||||
* T extends ReportWithPeriod
|
* T extends ReportWithPeriod
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
abstract public R collectReportWithPeriod(LocalDate startDate, LocalDate endDate);
|
abstract public T collectReportWithPeriod(LocalDate startDate, LocalDate endDate);
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
// * T extends ReportWithClearingStatus
|
// * T extends ReportWithClearingStatus
|
||||||
|
|
@ -33,14 +33,16 @@ public abstract class ReportDataCollector<T extends AbstractReport, R> {
|
||||||
// abstract public List<T> collectReportWithClearingStatus(LocalDate startDate, LocalDate endDate, String clearingStatus);
|
// abstract public List<T> collectReportWithClearingStatus(LocalDate startDate, LocalDate endDate, String clearingStatus);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* todo убрать метод, он уже лишний
|
||||||
* @param startDate
|
* @param startDate
|
||||||
* @param endDate
|
* @param endDate
|
||||||
* @param dateTimeNow LocalDateTime.now()
|
* @param dateTimeNow LocalDateTime.now()
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
abstract public String getFileName(LocalDate startDate, LocalDate endDate, LocalDateTime dateTimeNow);
|
public String getFileName(LocalDate startDate, LocalDate endDate, LocalDateTime dateTimeNow) {
|
||||||
|
throw new IllegalArgumentException("deprecated");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected String toString(Long val) {
|
protected String toString(Long val) {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class Bt17_1_P1_collector extends ReportDataCollector<ReportBR_0420315_P1, ReportBR_0420315_P1> {
|
public class Bt17_1_P1_collector extends ReportDataCollector<ReportBR_0420315_P1> {
|
||||||
protected static final List<String> ALLOW_CLEARING_MEMBER_CATEGORY = Arrays.asList(ClearingCategory.I.getKey(), ClearingCategory.V.getKey());
|
protected static final List<String> ALLOW_CLEARING_MEMBER_CATEGORY = Arrays.asList(ClearingCategory.I.getKey(), ClearingCategory.V.getKey());
|
||||||
protected static final String ALLOW_CLEARING_STATUS = ClearingStatus.OK.getKey();
|
protected static final String ALLOW_CLEARING_STATUS = ClearingStatus.OK.getKey();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import java.time.LocalDateTime;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class Bt17_1_P2_collector extends ReportDataCollector<ReportBR_0420315_P2, ReportBR_0420315_P2> {
|
public class Bt17_1_P2_collector extends ReportDataCollector<ReportBR_0420315_P2> {
|
||||||
private Imdg<LiabilitiesClaimsAssets> liabilitiesClaimsAssetsImdg;
|
private Imdg<LiabilitiesClaimsAssets> liabilitiesClaimsAssetsImdg;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import java.time.LocalDateTime;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class Bt17_2_collector extends ReportDataCollector<ReportBR_0420317, ReportBR_0420317> {
|
public class Bt17_2_collector extends ReportDataCollector<ReportBR_0420317> {
|
||||||
private Imdg<Company> companyImdg;
|
private Imdg<Company> companyImdg;
|
||||||
private Imdg<Relation> relationImdg;
|
private Imdg<Relation> relationImdg;
|
||||||
private Imdg<CompanySymbols> companySymbolsImdg;
|
private Imdg<CompanySymbols> companySymbolsImdg;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import java.util.Collection;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class Bt17_5_P1_collector extends ReportDataCollector<ReportBR_0420312_P1, ReportBR_0420312_P1> {
|
public class Bt17_5_P1_collector extends ReportDataCollector<ReportBR_0420312_P1> {
|
||||||
private Imdg<Company> companyImdg;
|
private Imdg<Company> companyImdg;
|
||||||
private Imdg<Relation> relationImdg;
|
private Imdg<Relation> relationImdg;
|
||||||
private Imdg<CompanySymbols> companySymbolsImdg;
|
private Imdg<CompanySymbols> companySymbolsImdg;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue