Subversion Repositories SmartDukaan

Rev

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

Rev 25516 Rev 25518
Line 605... Line 605...
605
		// throw new Exception();
605
		// throw new Exception();
606
	}
606
	}
607
 
607
 
608
	public void fixSchemePayouts() throws Exception {
608
	public void fixSchemePayouts() throws Exception {
609
 
609
 
610
		LocalDateTime startDate = LocalDateTime.of(2019, 9, 9, 16, 45, 50);
610
		LocalDateTime startDate = LocalDateTime.of(2019, 9, 1, 0,0,0);
611
		LocalDateTime endDate = LocalDateTime.of(2019, 9, 9, 16, 46, 35);
611
		LocalDateTime endDate = LocalDateTime.of(2019, 9, 10, 0,0,0);
612
		float totalSchemeAmount = 0;
612
/*		float totalSchemeAmount = 0;
613
		float totalWalletAmount = 0;
613
		float totalWalletAmount = 0;
614
		List<SchemeInOut> sios = schemeInOutRepository.selectAllByCreateDate(startDate, endDate);
614
		List<SchemeInOut> sios = schemeInOutRepository.selectAllByCreateDate(startDate, endDate);
615
		for (SchemeInOut sio : sios) {
615
		for (SchemeInOut sio : sios) {
616
			totalSchemeAmount += sio.getAmount();
616
			totalSchemeAmount += sio.getAmount();
617
			genericRepository.delete(sio);
617
			genericRepository.delete(sio);
Line 623... Line 623...
623
			userWallet.setAmount(userWallet.getAmount() - userWalletHistory.getAmount());
623
			userWallet.setAmount(userWallet.getAmount() - userWalletHistory.getAmount());
624
			totalWalletAmount += userWallet.getAmount();
624
			totalWalletAmount += userWallet.getAmount();
625
		}
625
		}
626
 
626
 
627
		System.out.println("Total Amount Rolled Back is " + totalWalletAmount);
627
		System.out.println("Total Amount Rolled Back is " + totalWalletAmount);
628
		System.out.println("Total Scheme Deleted " + totalSchemeAmount);
628
		System.out.println("Total Scheme Deleted " + totalSchemeAmount);*/
629
		// scheduledTasks.processScheme(startDate, startDate.plusDays(10));
629
		scheduledTasks.processScheme(startDate, startDate.plusDays(11));
630
		throw new Exception();
630
		//throw new Exception();
631
	}
631
	}
632
}
632
}
633
 
633
 
634
//7015845171
634
//7015845171
635
635