Subversion Repositories SmartDukaan

Rev

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

Rev 32599 Rev 32605
Line 601... Line 601...
601
        //ScratchedGift gift = getScratchedGiftRandom(fofoId, customerId);
601
        //ScratchedGift gift = getScratchedGiftRandom(fofoId, customerId);
602
 
602
 
603
 
603
 
604
        //  LocalDateTime endDate = LocalDateTime.of(LocalDate.now().getYear(), LocalDate.now().getMonth(), 27, 21, 00);
604
        //  LocalDateTime endDate = LocalDateTime.of(LocalDate.now().getYear(), LocalDate.now().getMonth(), 27, 21, 00);
605
        List<ScratchOffer> scratchOffers = scratchOfferRepository.selectBycCustomerIdAndDate(customerId, ProfitMandiConstants.SCRATCH_OFFER_START_DATE, ProfitMandiConstants.SCRATCH_OFFER_END_DATE);
605
        List<ScratchOffer> scratchOffers = scratchOfferRepository.selectBycCustomerIdAndDate(customerId, ProfitMandiConstants.SCRATCH_OFFER_START_DATE, ProfitMandiConstants.SCRATCH_OFFER_END_DATE);
606
        if(scratchOffers.size() > 0) {
606
        if (scratchOffers.size() == 0) {
607
            ScratchOffer so2 = new ScratchOffer();
607
            ScratchOffer so2 = new ScratchOffer();
608
            so2.setInvoiceNumber(invoiceNumber);
608
            so2.setInvoiceNumber(invoiceNumber);
609
            so2.setScratched(false);
609
            so2.setScratched(false);
610
            so2.setCreatedTimestamp(LocalDateTime.now());
610
            so2.setCreatedTimestamp(LocalDateTime.now());
611
            so2.setExpiredTimestamp(LocalDateTime.now().plusDays(1));
611
            so2.setExpiredTimestamp(LocalDateTime.now().plusDays(1));