Subversion Repositories SmartDukaan

Rev

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

Rev 30426 Rev 31057
Line 1112... Line 1112...
1112
 
1112
 
1113
		List<ScratchOffer> scratchOffers = scratchOfferRepository.selectBycCustomerId(id);
1113
		List<ScratchOffer> scratchOffers = scratchOfferRepository.selectBycCustomerId(id);
1114
		for (ScratchOffer so : scratchOffers) {
1114
		for (ScratchOffer so : scratchOffers) {
1115
 
1115
 
1116
			if (so.getOfferName() != null) {
1116
			if (so.getOfferName() != null) {
-
 
1117
				/*
1117
				if (so.getOfferName().equals(ScratchedGift.OTSR)) {
1118
				 * if (so.getOfferName().equals(ScratchedGift.OTSR)) {
1118
					so.setExpiredTimestamp(so.getCreatedTimestamp().plusDays(1));
1119
				 * so.setExpiredTimestamp(so.getCreatedTimestamp().plusDays(1)); } else
1119
				} else if (so.getOfferName().equals(ScratchedGift.ADTL)) {
1120
				 */if (so.getOfferName().equals(ScratchedGift.EW)) {
1120
					so.setExpiredTimestamp(so.getCreatedTimestamp().plusDays(1));
1121
					so.setExpiredTimestamp(so.getCreatedTimestamp().plusDays(2));
1121
				}
1122
				}
1122
			}
1123
			}
1123
			if (LocalDateTime.now().isAfter(so.getUnlockedAt())) {
1124
			if (LocalDateTime.now().isAfter(so.getUnlockedAt())) {
1124
				so.setUnlocked(true);
1125
				so.setUnlocked(true);
1125
			} else {
1126
			} else {