修改查询条件

master
bynt 2 years ago
parent 6655cd507c
commit 5c177200e0

@ -68,7 +68,7 @@ public interface TaskImeiRepository extends JpaRepository<TaskImei, Long>, JpaSp
* @return
*/
@Query(value = "select count(1) from tb_task_imei where" +
" to_days(create_time) = to_days(now()) and user_id = ?1 and status = ?2", nativeQuery = true)
" to_days(create_time) = to_days(now()) and task_id = ?1 and status = ?2", nativeQuery = true)
Integer countByUserId(Long userId, Integer num);
/**

Loading…
Cancel
Save