| Line 8... |
Line 8... |
| 8 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
8 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
| 9 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
9 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
| 10 |
|
10 |
|
| 11 |
@Repository
|
11 |
@Repository
|
| 12 |
public interface LeadRepository {
|
12 |
public interface LeadRepository {
|
| 13 |
|
13 |
|
| 14 |
public void persist(Lead lead);
|
14 |
public void persist(Lead lead);
|
| 15 |
|
15 |
|
| 16 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status, int offset, int limit);
|
16 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status, int offset, int limit);
|
| 17 |
|
17 |
|
| 18 |
public Lead selectById(int id);
|
18 |
public Lead selectById(int id);
|
| 19 |
|
19 |
|
| - |
|
20 |
public List<Lead> selectAllByIds(List<Integer> ids);
|
| - |
|
21 |
|
| 20 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status);
|
22 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status);
|
| 21 |
|
23 |
|
| 22 |
public List<Lead> selectByAssignAuthIdsAndStatus(List<Integer> authId, LeadStatus status);
|
24 |
public List<Lead> selectByAssignAuthIdsAndStatus(List<Integer> authId, LeadStatus status);
|
| 23 |
|
25 |
|
| 24 |
public List<Lead> selectAll(int offset, int limit);
|
26 |
public List<Lead> selectAll(int offset, int limit);
|
| Line 37... |
Line 39... |
| 37 |
|
39 |
|
| 38 |
public long getLeadCount(LeadStatus status, String searchTerm);
|
40 |
public long getLeadCount(LeadStatus status, String searchTerm);
|
| 39 |
|
41 |
|
| 40 |
public List<Lead> selectBySearchTerm(List<LeadStatus> status, String searchTerm, int offset, int limit);
|
42 |
public List<Lead> selectBySearchTerm(List<LeadStatus> status, String searchTerm, int offset, int limit);
|
| 41 |
|
43 |
|
| 42 |
public List<Lead> selectAllByColorStatusAndUpdatedTimestamp(List<LeadStatus> status,
|
44 |
public List<Lead> selectAllByColorStatusAndUpdatedTimestamp(List<LeadStatus> status, List<String> color,
|
| 43 |
List<String> color, LocalDateTime updatedTimestamp);
|
45 |
LocalDateTime updatedTimestamp);
|
| 44 |
|
46 |
|
| 45 |
List<Lead> selectAllByStatusAndUpdatedTimestampAndAuthId(List<LeadStatus> status, LocalDateTime updatedTimestamp,
|
47 |
List<Lead> selectAllByStatusAndUpdatedTimestampAndAuthId(List<LeadStatus> status, LocalDateTime updatedTimestamp,
|
| 46 |
List<Integer> authIds);
|
48 |
List<Integer> authIds);
|
| 47 |
|
49 |
|
| 48 |
List<Lead> selectAllByColorStatusAndUpdatedTimestampAndAuthIds(List<LeadStatus> status, List<Integer> authIds,
|
50 |
List<Lead> selectAllByColorStatusAndUpdatedTimestampAndAuthIds(List<LeadStatus> status, List<Integer> authIds,
|