Subversion Repositories SmartDukaan

Rev

Rev 31563 | Rev 31738 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31563 Rev 31564
Line 1371... Line 1371...
1371
		List<WalletSummaryReportModel> walletSummartList = fofoOrderRepository.selectWalletSummaryReport(
1371
		List<WalletSummaryReportModel> walletSummartList = fofoOrderRepository.selectWalletSummaryReport(
1372
				fofoDetails.getFofoId(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
1372
				fofoDetails.getFofoId(), startDate.atStartOfDay(), endDate.atTime(LocalTime.MAX));
1373
		LOGGER.info("walletSummartList {}", walletSummartList);
1373
		LOGGER.info("walletSummartList {}", walletSummartList);
1374
		DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm");
1374
		DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm");
1375
 
1375
 
1376
		for (WalletSummaryReportModel walletSummart : walletSummartList) {
1376
		for (WalletSummaryReportModel walletSummary : walletSummartList) {
1377
 
1377
 
1378
			rows.add(Arrays.asList(walletSummart.getId(), walletSummart.getCode(), walletSummart.getName(),
1378
			rows.add(Arrays.asList(walletSummary.getId(), walletSummary.getCode(), walletSummary.getName(),
1379
					walletSummart.getEmail(), walletSummart.getPhone(), walletSummart.getAmount(),
1379
					walletSummary.getEmail(), walletSummary.getPhone(), walletSummary.getAmount(),
1380
					walletSummart.getRefundableAmount(), walletSummart.getReference(), walletSummart.getReferenceType(),
1380
					walletSummary.getRefundableAmount(), walletSummary.getReference(), walletSummary.getReferenceType(),
1381
					dateTimeFormatter.format(walletSummart.getBusinessTimestamp())));
1381
					FormattingUtils.format(walletSummary.getBusinessTimestamp())));
1382
 
1382
 
1383
		}
1383
		}
1384
 
1384
 
1385
		org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil
1385
		org.apache.commons.io.output.ByteArrayOutputStream baos = FileUtil
1386
				.getCSVByteStream(Arrays.asList("Id", "Code", "Name", "Email", "Phone", "Amount", "Refundable_amount",
1386
				.getCSVByteStream(Arrays.asList("Id", "Code", "Name", "Email", "Phone", "Amount", "Refundable_amount",