| Line 3... |
Line 3... |
| 3 |
import java.time.LocalDateTime;
|
3 |
import java.time.LocalDateTime;
|
| 4 |
import java.util.List;
|
4 |
import java.util.List;
|
| 5 |
|
5 |
|
| 6 |
import org.springframework.stereotype.Repository;
|
6 |
import org.springframework.stereotype.Repository;
|
| 7 |
|
7 |
|
| - |
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| - |
|
9 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
| 8 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
10 |
import com.spice.profitmandi.dao.entity.user.Lead;
|
| 9 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
11 |
import com.spice.profitmandi.dao.enumuration.dtr.LeadStatus;
|
| - |
|
12 |
import com.spice.profitmandi.dao.model.LeadDetailModel;
|
| 10 |
|
13 |
|
| 11 |
@Repository
|
14 |
@Repository
|
| 12 |
public interface LeadRepository {
|
15 |
public interface LeadRepository {
|
| 13 |
|
16 |
|
| 14 |
public void persist(Lead lead);
|
17 |
public void persist(Lead lead);
|
| 15 |
|
18 |
|
| 16 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status, int offset, int limit);
|
19 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status, int offset, int limit);
|
| 17 |
|
20 |
|
| 18 |
public Lead selectById(int id);
|
21 |
public Lead selectById(int id);
|
| 19 |
|
22 |
|
| 20 |
public List<Lead> selectAllByIds(List<Integer> ids);
|
23 |
public List<Lead> selectAllByIds(List<Integer> ids);
|
| 21 |
|
24 |
|
| 22 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status);
|
25 |
public List<Lead> selectByAssignAuthIdAndStatus(int authId, LeadStatus status);
|
| 23 |
|
26 |
|
| 24 |
public List<Lead> selectByAssignAuthIdsAndStatus(List<Integer> authId, LeadStatus status);
|
27 |
public List<Lead> selectByAssignAuthIdsAndStatus(List<Integer> authId, LeadStatus status);
|
| 25 |
|
28 |
|
| 26 |
public List<Lead> selectAll(int offset, int limit);
|
29 |
public List<Lead> selectAll(int offset, int limit);
|
| 27 |
|
30 |
|
| 28 |
public List<Lead> selectAllBylistStatus(List<LeadStatus> status);
|
31 |
public List<Lead> selectAllBylistStatus(List<LeadStatus> status);
|
| 29 |
|
32 |
|
| 30 |
public List<Lead> selectAllByStatus(LeadStatus status);
|
33 |
public List<Lead> selectAllByStatus(LeadStatus status);
|
| 31 |
|
34 |
|
| 32 |
public List<Lead> selectAllByStatusAndUpdatedTimestamp(List<LeadStatus> status, LocalDateTime updatedTimestamp);
|
35 |
public List<Lead> selectAllByStatusAndUpdatedTimestamp(List<LeadStatus> status, LocalDateTime updatedTimestamp);
|
| 33 |
|
36 |
|
| 34 |
public List<Lead> selectAllByStatus(List<LeadStatus> status, int offset, int limit);
|
37 |
public List<Lead> selectAllByStatus(List<LeadStatus> status, int offset, int limit);
|
| 35 |
|
38 |
|
| 36 |
List<Lead> selectLeadsScheduledBetweenDate(List<Integer> fofoIds, LocalDateTime startDate, LocalDateTime endDate);
|
39 |
List<Lead> selectLeadsScheduledBetweenDate(List<Integer> fofoIds, LocalDateTime startDate, LocalDateTime endDate);
|
| 37 |
|
40 |
|
| 38 |
public long selectCountByStatus(List<LeadStatus> status);
|
41 |
public long selectCountByStatus(List<LeadStatus> status);
|
| 39 |
|
42 |
|
| 40 |
public long getLeadCount(LeadStatus status, String searchTerm);
|
43 |
public long getLeadCount(LeadStatus status, String searchTerm);
|
| 41 |
|
44 |
|
| 42 |
public List<Lead> selectBySearchTerm(List<LeadStatus> status, String searchTerm, int offset, int limit);
|
45 |
public List<Lead> selectBySearchTerm(List<LeadStatus> status, String searchTerm, int offset, int limit);
|
| 43 |
|
46 |
|
| 44 |
public List<Lead> selectAllByColorStatusAndUpdatedTimestamp(List<LeadStatus> status, List<String> color,
|
47 |
public List<Lead> selectAllByColorStatusAndUpdatedTimestamp(List<LeadStatus> status, List<String> color, LocalDateTime updatedTimestamp);
|
| 45 |
LocalDateTime updatedTimestamp);
|
- |
|
| 46 |
|
48 |
|
| 47 |
List<Lead> selectAllByStatusAndUpdatedTimestampAndAuthId(List<LeadStatus> status, LocalDateTime updatedTimestamp,
|
49 |
List<Lead> selectAllByStatusAndUpdatedTimestampAndAuthId(List<LeadStatus> status, LocalDateTime updatedTimestamp, List<Integer> authIds);
|
| - |
|
50 |
|
| - |
|
51 |
List<Lead> selectAllByColorStatusAndUpdatedTimestampAndAuthIds(List<LeadStatus> status, List<Integer> authIds, List<String> color, LocalDateTime updatedTimestamp);
|
| - |
|
52 |
|
| 48 |
List<Integer> authIds);
|
53 |
public void persistLeadDetail(LeadDetailModel leadDetailModel, AuthUser authUser) throws ProfitMandiBusinessException;
|
| 49 |
|
54 |
|
| 50 |
List<Lead> selectAllByColorStatusAndUpdatedTimestampAndAuthIds(List<LeadStatus> status, List<Integer> authIds,
|
- |
|
| 51 |
List<String> color, LocalDateTime updatedTimestamp);
|
- |
|
| 52 |
}
|
55 |
}
|