Subversion Repositories SmartDukaan

Rev

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

Rev 27360 Rev 27398
Line 460... Line 460...
460
							if (offerPartner.getFofoId() == loginDetails.getFofoId()) {
460
							if (offerPartner.getFofoId() == loginDetails.getFofoId()) {
461
								/*
461
								/*
462
								 * if (LocalDateTime.now().isAfter(offer.getStartDateTime()) &&
462
								 * if (LocalDateTime.now().isAfter(offer.getStartDateTime()) &&
463
								 * LocalDateTime.now().isBefore(offer.getEndDateTime())) {
463
								 * LocalDateTime.now().isBefore(offer.getEndDateTime())) {
464
								 */
464
								 */
465
 
-
 
466
								if (LocalDateTime.now().isBefore(offer.getEndDateTime())) {
465
								int todayMonth = LocalDateTime.now().getMonthValue();
467
 
-
 
-
 
466
								if (todayMonth == offer.getStartDateTime().getMonthValue()
-
 
467
										|| todayMonth == offer.getEndDateTime().getMonthValue()) {
468
									LocalDateTime cur = LocalDate.now().minusMonths(2).atStartOfDay();
468
									LocalDateTime cur = LocalDate.now().minusMonths(2).atStartOfDay();
469
									LOGGER.info("value" + cur);
469
									LOGGER.info("value" + cur);
470
									Map<Integer, Double> value = offerRepository.selectSumOfferByRetailer(
470
									Map<Integer, Double> value = offerRepository.selectSumOfferByRetailer(
471
											offer.getStartDateTime(), offer.getEndDateTime(), loginDetails.getFofoId(),
471
											offer.getStartDateTime(), offer.getEndDateTime(), loginDetails.getFofoId(),
472
											offer, true);
472
											offer, true);