| Line 497... |
Line 497... |
| 497 |
}
|
497 |
}
|
| 498 |
|
498 |
|
| 499 |
private ByteArrayOutputStream getByteArrayOutputStream(LocalDateTime affectedOn, Integer catalogItemId,
|
499 |
private ByteArrayOutputStream getByteArrayOutputStream(LocalDateTime affectedOn, Integer catalogItemId,
|
| 500 |
Map<String, PriceDropIMEI> priceDropImeis) throws Exception {
|
500 |
Map<String, PriceDropIMEI> priceDropImeis) throws Exception {
|
| 501 |
List<ImeiDropSummaryModel> imeiDropSummaryModelList = priceDropService
|
501 |
List<ImeiDropSummaryModel> imeiDropSummaryModelList = priceDropService
|
| 502 |
.getAllSerialNumbersByAffectedDate(affectedOn, catalogItemId);
|
502 |
.getAllSerialNumbersByAffectedDate(affectedOn, catalogItemId, Optional.empty());
|
| 503 |
List<List<?>> rows = new ArrayList<>();
|
503 |
List<List<?>> rows = new ArrayList<>();
|
| 504 |
for (ImeiDropSummaryModel imeiDropSummaryModel : imeiDropSummaryModelList) {
|
504 |
for (ImeiDropSummaryModel imeiDropSummaryModel : imeiDropSummaryModelList) {
|
| 505 |
if (priceDropImeis == null) {
|
505 |
if (priceDropImeis == null) {
|
| 506 |
rows.add(this.getRow(imeiDropSummaryModel, null));
|
506 |
rows.add(this.getRow(imeiDropSummaryModel, null));
|
| 507 |
} else if (priceDropImeis.get(imeiDropSummaryModel.getSerialNumber()) != null) {
|
507 |
} else if (priceDropImeis.get(imeiDropSummaryModel.getSerialNumber()) != null) {
|