|
|
|
@ -30,7 +30,7 @@ public interface CallClueRepository extends JpaRepository<CallClueInfo, Long>, J
|
|
|
|
|
* @param endTime
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Query(value = "select * from tb_call_clue d where d.create_time >= ?1 and d.create_time< ?2", nativeQuery = true)
|
|
|
|
|
@Query(value = "select * from tb_call_clue where create_time between ?1 and ?2", nativeQuery = true)
|
|
|
|
|
List<CallClueInfo> queryAllByTime(String beginTime, String endTime);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -62,7 +62,7 @@ public interface CallClueRepository extends JpaRepository<CallClueInfo, Long>, J
|
|
|
|
|
* @param ids
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Query(value = "select * from tb_call_clue d where d.create_time >= ?1 and d.create_time< ?2 AND d.task_id in ?3", nativeQuery = true)
|
|
|
|
|
@Query(value = "select * from tb_call_clue where (create_time between ?1 and ?2) AND task_id in ?3", nativeQuery = true)
|
|
|
|
|
List<CallClueInfo> queryAllByTimeAndTaskId(String beginTime, String endTime, List<Long> ids);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -73,7 +73,7 @@ public interface CallClueRepository extends JpaRepository<CallClueInfo, Long>, J
|
|
|
|
|
* @param ids
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Query(value = "select * from tb_call_clue d where d.create_time >= ?1 and d.create_time< ?2 AND d.team_id in ?3", nativeQuery = true)
|
|
|
|
|
@Query(value = "select * from tb_call_clue where (create_time between ?1 and ?2) AND team_id in ?3", nativeQuery = true)
|
|
|
|
|
List<CallClueInfo> queryAllByTimeAndTeamId(String beginTime, String endTime, List<Long> ids);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -84,6 +84,6 @@ public interface CallClueRepository extends JpaRepository<CallClueInfo, Long>, J
|
|
|
|
|
* @param id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Query(value = "select * from tb_call_clue d where d.create_time >= ?1 and d.create_time< ?2 AND d.member_id = ?3", nativeQuery = true)
|
|
|
|
|
@Query(value = "select * from tb_call_clue where (create_time between ?1 and ?2) AND member_id = ?3", nativeQuery = true)
|
|
|
|
|
List<CallClueInfo> queryAllByTimeAndMemberId(String beginTime, String endTime, Long id);
|
|
|
|
|
}
|
|
|
|
|