Subversion Repositories SmartDukaan

Rev

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

Rev 35531 Rev 35568
Line 3128... Line 3128...
3128
            sendNotificationModel.setUserIds(Arrays.asList(authUserKeyMap.get(visit.getAuthId())));
3128
            sendNotificationModel.setUserIds(Arrays.asList(authUserKeyMap.get(visit.getAuthId())));
3129
            // notificationService.sendNotification(sendNotificationModel);
3129
            // notificationService.sendNotification(sendNotificationModel);
3130
        }
3130
        }
3131
    }
3131
    }
3132
 
3132
 
3133
    public void ticketClosed() throws Exception {
-
 
3134
 
-
 
3135
        List<Ticket> tickets = ticketRepository.selectAllNotClosedTicketsWithStatus(ActivityType.RESOLVED);
3133
    // REMOVED: Duplicate ticketClosed() - now handled by TicketRelatedScheduledTask.autoCloseResolvedTickets()
3136
        for (Ticket ticket : tickets) {
-
 
3137
            if (ticket.getUpdateTimestamp().toLocalDate().isBefore(LocalDate.now().minusDays(7))) {
-
 
3138
                ticket.setCloseTimestamp(LocalDateTime.now());
-
 
3139
                ticket.setLastActivity(ActivityType.RESOLVED_ACCEPTED);
-
 
3140
                ticket.setUpdateTimestamp(LocalDateTime.now());
3134
    // which uses 8 working days instead of 7 calendar days
3141
                ticketRepository.persist(ticket);
-
 
3142
            }
-
 
3143
        }
-
 
3144
 
-
 
3145
    }
-
 
3146
 
3135
 
3147
    public void checkValidateReferral() throws Exception {
3136
    public void checkValidateReferral() throws Exception {
3148
 
3137
 
3149
        List<Refferal> referrals = refferalRepository.selectByStatus(RefferalStatus.pending);
3138
        List<Refferal> referrals = refferalRepository.selectByStatus(RefferalStatus.pending);
3150
        LOGGER.info("referrals" + referrals);
3139
        LOGGER.info("referrals" + referrals);