Subversion Repositories SmartDukaan

Rev

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

Rev 30969 Rev 30979
Line 441... Line 441...
441
						offerRowModel.getEligibleSale(),
441
						offerRowModel.getEligibleSale(),
442
						offerRowModel.getPayoutTargetAchieved(),
442
						offerRowModel.getPayoutTargetAchieved(),
443
						offerRowModel.getPayoutValue(),
443
						offerRowModel.getPayoutValue(),
444
						offerRowModel.getPayoutType(),
444
						offerRowModel.getPayoutType(),
445
						offerRowModel.getPayoutValueDp(), offerRowModel.getFinalPayout(),
445
						offerRowModel.getPayoutValueDp(), offerRowModel.getFinalPayout(),
446
						String.join(", ", offerRowModel.getPendingImeis())));
446
						String.join(", ", offerRowModel.getEligibleImeis())));
447
			}
447
			}
448
			baos = FileUtil.getCSVByteStream(
448
			baos = FileUtil.getCSVByteStream(
449
					Arrays.asList("Id", "Name", "Target Type", "Scheme Type", "Brand %", "Sellin %", "Partner Criteria",
449
					Arrays.asList("Id", "Name", "Target Type", "Scheme Type", "Brand %", "Sellin %", "Partner Criteria",
450
							"Item Criteria", "Start", "End", "Created", "Partner Id", "Partner Name", "Partner Code",
450
							"Item Criteria", "Start", "End", "Created", "Partner Id", "Partner Name", "Partner Code",
451
 
451
 
452
							"Total Value",
452
							"Total Value",
453
							"Eligible Value",
453
							"Eligible Value",
454
							"Payout Target Achieved", "Payout Amount", "Payout Amount Type",
454
							"Payout Target Achieved", "Payout Amount", "Payout Amount Type",
455
							"Payout Value DP", "Amount to be credited", "IMEIs pending for Activation"
455
							"Payout Value DP", "Amount to be credited", "Eligible Activated Imeis"
456
							// "Payout Sale Qty", "Activated Value", "Activated Qty",
-
 
457
					), listOfRows);
456
					), listOfRows);
458
		}
457
		}
459
		final InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
458
		final InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
460
		final InputStreamResource inputStreamResource = new InputStreamResource(inputStream);
459
		final InputStreamResource inputStreamResource = new InputStreamResource(inputStream);
461
		return new ResponseEntity<>(inputStreamResource, headers, HttpStatus.OK);
460
		return new ResponseEntity<>(inputStreamResource, headers, HttpStatus.OK);