| | |
| | | "and r.check_task_id in (:taskIds) " + |
| | | "group by r.device_id, r.problem_id", nativeQuery = true) |
| | | List<Object[]> countDeviceChecksByTaskIds(@Param("taskIds") List<Integer> taskIds); |
| | | |
| | | @Query(value = "select r.device_id, count(distinct r.check_task_id) " + |
| | | "from record r " + |
| | | "where r.deleted = false " + |
| | | "and r.device_id is not null " + |
| | | "and r.check_task_id in (:taskIds) " + |
| | | "group by r.device_id", nativeQuery = true) |
| | | List<Object[]> countDeviceCheckTasksByTaskIds(@Param("taskIds") List<Integer> taskIds); |
| | | } |