修改统计不准确问题

master
wujingtao 2 years ago
parent 6cc342544d
commit ecd7bd34f7

@ -69,7 +69,7 @@ public interface AllCallInfoRepository extends JpaRepository<AllCallInfo, Long>,
* @param id
* @return
*/
@Query(value = "select * from tb_call_info d where d.create_time>=?1 and d.create_time<?2 and d.clue_id = ?3", nativeQuery = true)
@Query(value = "select * from tb_call_info where (create_time between ?1 and ?2) and clue_id = ?3", nativeQuery = true)
List<AllCallInfo> queryAllByTime(String beginTime, String endTime, Long id);
/**

@ -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);
}

@ -34,6 +34,6 @@ public interface ReportTokerRepository extends JpaRepository<ReportToker, Long>,
* @param taskIds
* @return
*/
@Query(value = "select * from tb_report_toker where (create_time between ?1 and ?2) and task_id in (?3)", nativeQuery = true)
@Query(value = "select * from tb_report_toker where (create_time between ?1 and ?2) and task_id in ?3", nativeQuery = true)
List<ReportToker> queryAllByTimeAndTaskIds(String beginTime, String endTime, List<Long> taskIds);
}

Loading…
Cancel
Save