| 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 {
|
|
|
13 |
public void persist(Lead lead);
|
|
|
14 |
|
| 25979 |
tejbeer |
15 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status, int offset, int limit);
|
| 25899 |
tejbeer |
16 |
|
|
|
17 |
public Lead selectById(int id);
|
| 25915 |
amit.gupta |
18 |
|
| 26298 |
tejbeer |
19 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status);
|
|
|
20 |
|
|
|
21 |
public List<Lead> selectByAssignAuthIdsAndStatus(List<Integer> authId, LeadStatus status);
|
|
|
22 |
|
| 25979 |
tejbeer |
23 |
public List<Lead> selectAll(int offset, int limit);
|
|
|
24 |
|
| 27610 |
tejbeer |
25 |
public List<Lead> selectAllBylistStatus(List<LeadStatus> status);
|
|
|
26 |
|
| 25979 |
tejbeer |
27 |
public List<Lead> selectAllByStatus(LeadStatus status);
|
|
|
28 |
|
| 27615 |
tejbeer |
29 |
public List<Lead> selectAllByStatusAndUpdatedTimestamp(List<LeadStatus> status, LocalDateTime updatedTimestamp);
|
|
|
30 |
|
| 25988 |
tejbeer |
31 |
public List<Lead> selectAllByStatus(List<LeadStatus> status, int offset, int limit);
|
|
|
32 |
|
| 25915 |
amit.gupta |
33 |
List<Lead> selectLeadsScheduledBetweenDate(LocalDateTime startDate, LocalDateTime endDate);
|
| 25988 |
tejbeer |
34 |
|
|
|
35 |
public long selectCountByStatus(List<LeadStatus> status);
|
|
|
36 |
|
|
|
37 |
public long getLeadCount(LeadStatus status, String searchTerm);
|
|
|
38 |
|
|
|
39 |
public List<Lead> selectBySearchTerm(List<LeadStatus> status, String searchTerm, int offset, int limit);
|
| 27642 |
tejbeer |
40 |
|
| 27723 |
tejbeer |
41 |
public List<Lead> selectAllByColorStatusAndUpdatedTimestamp(List<LeadStatus> status, List<String> color,
|
| 27642 |
tejbeer |
42 |
LocalDateTime updatedTimestamp);
|
| 25899 |
tejbeer |
43 |
}
|