| 25899 |
tejbeer |
1 |
package com.spice.profitmandi.dao.repository.dtr;
|
|
|
2 |
|
| 25915 |
amit.gupta |
3 |
import java.time.LocalDateTime;
|
| 25899 |
tejbeer |
4 |
import java.util.List;
|
|
|
5 |
|
|
|
6 |
import org.springframework.stereotype.Repository;
|
|
|
7 |
|
|
|
8 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
|
|
9 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
|
|
10 |
|
|
|
11 |
@Repository
|
|
|
12 |
public interface LeadRepository {
|
| 29425 |
manish |
13 |
|
| 25899 |
tejbeer |
14 |
public void persist(Lead lead);
|
|
|
15 |
|
| 25979 |
tejbeer |
16 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status, int offset, int limit);
|
| 25899 |
tejbeer |
17 |
|
|
|
18 |
public Lead selectById(int id);
|
| 25915 |
amit.gupta |
19 |
|
| 26298 |
tejbeer |
20 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status);
|
|
|
21 |
|
|
|
22 |
public List<Lead> selectByAssignAuthIdsAndStatus(List<Integer> authId, LeadStatus status);
|
|
|
23 |
|
| 25979 |
tejbeer |
24 |
public List<Lead> selectAll(int offset, int limit);
|
|
|
25 |
|
| 27610 |
tejbeer |
26 |
public List<Lead> selectAllBylistStatus(List<LeadStatus> status);
|
|
|
27 |
|
| 25979 |
tejbeer |
28 |
public List<Lead> selectAllByStatus(LeadStatus status);
|
|
|
29 |
|
| 29277 |
manish |
30 |
public List<Lead> selectAllByStatusAndUpdatedTimestamp(List<LeadStatus> status, LocalDateTime updatedTimestamp);
|
| 27615 |
tejbeer |
31 |
|
| 25988 |
tejbeer |
32 |
public List<Lead> selectAllByStatus(List<LeadStatus> status, int offset, int limit);
|
|
|
33 |
|
| 29435 |
amit.gupta |
34 |
List<Lead> selectLeadsScheduledBetweenDate(List<Integer> fofoIds, LocalDateTime startDate, LocalDateTime endDate);
|
| 25988 |
tejbeer |
35 |
|
|
|
36 |
public long selectCountByStatus(List<LeadStatus> status);
|
|
|
37 |
|
|
|
38 |
public long getLeadCount(LeadStatus status, String searchTerm);
|
|
|
39 |
|
|
|
40 |
public List<Lead> selectBySearchTerm(List<LeadStatus> status, String searchTerm, int offset, int limit);
|
| 27642 |
tejbeer |
41 |
|
| 29277 |
manish |
42 |
public List<Lead> selectAllByColorStatusAndUpdatedTimestamp(List<LeadStatus> status,
|
| 29270 |
manish |
43 |
List<String> color, LocalDateTime updatedTimestamp);
|
| 29277 |
manish |
44 |
|
|
|
45 |
List<Lead> selectAllByStatusAndUpdatedTimestampAndAuthId(List<LeadStatus> status, LocalDateTime updatedTimestamp,
|
|
|
46 |
List<Integer> authIds);
|
|
|
47 |
|
|
|
48 |
List<Lead> selectAllByColorStatusAndUpdatedTimestampAndAuthIds(List<LeadStatus> status, List<Integer> authIds,
|
|
|
49 |
List<String> color, LocalDateTime updatedTimestamp);
|
| 25899 |
tejbeer |
50 |
}
|