Subversion Repositories SmartDukaan

Rev

Rev 35626 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35626 Rev 35631
Line 1... Line 1...
1
package com.spice.profitmandi.dao.repository.cs;
1
package com.spice.profitmandi.dao.repository.cs;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
import java.util.List;
-
 
5
import java.util.Map;
-
 
6
import java.util.Optional;
-
 
7
 
-
 
8
import javax.swing.SortOrder;
-
 
9
 
-
 
10
import org.springframework.stereotype.Repository;
-
 
11
 
-
 
12
import com.spice.profitmandi.dao.entity.auth.AuthUser;
3
import com.spice.profitmandi.dao.entity.auth.AuthUser;
13
import com.spice.profitmandi.dao.entity.cs.Ticket;
4
import com.spice.profitmandi.dao.entity.cs.Ticket;
14
import com.spice.profitmandi.dao.entity.cs.TicketSearchType;
5
import com.spice.profitmandi.dao.entity.cs.TicketSearchType;
15
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
6
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
16
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
7
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
17
import com.spice.profitmandi.dao.model.TicketViewModel;
8
import com.spice.profitmandi.dao.model.TicketViewModel;
-
 
9
import org.springframework.stereotype.Repository;
-
 
10
 
-
 
11
import javax.swing.*;
-
 
12
import java.time.LocalDateTime;
-
 
13
import java.util.List;
-
 
14
import java.util.Map;
-
 
15
import java.util.Optional;
18
 
16
 
19
@Repository
17
@Repository
20
public interface TicketRepository {
18
public interface TicketRepository {
21
    void persist(Ticket ticket);
19
    void persist(Ticket ticket);
22
 
20
 
Line 143... Line 141...
143
            Optional<Boolean> resolved,
141
            Optional<Boolean> resolved,
144
            TicketSearchType searchType,
142
            TicketSearchType searchType,
145
            int searchTerm,
143
            int searchTerm,
146
            String searchText
144
            String searchText
147
    );
145
    );
-
 
146
 
-
 
147
    /**
-
 
148
     * Get open ticket counts grouped by fofoId for specific fofoIds.
-
 
149
     * More efficient than fetching all tickets for all retailers.
-
 
150
     */
-
 
151
    Map<Integer, Long> selectOpenTicketsCountByFofoIds(List<Integer> fofoIds);
-
 
152
 
-
 
153
    List<Ticket> selectOpenEscalatedTicketsByAuthIds(List<Integer> authIds);
148
}
154
}
149
155