@@ -21,7 +21,7 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB
@Modifying
@Transactional(rollbackFor=Exception.class)
@Query(value="delete from xiaodu_history_tb where xiaodu_user_id=?1 and last_time < (select last_time from (select last_time from xiaodu_history_tb where xiaodu_user_id=?1 order by last_time limit 14,1) t1)",nativeQuery=true)
@Query(value="delete from xiaodu_history_tb where xiaodu_user_id=?1 and last_time < (select last_time from (select last_time from xiaodu_history_tb where xiaodu_user_id=?1 order by last_time limit 15,1) t1)",nativeQuery=true)
voiddeleteOverTime(StringuserId);
@Modifying
...
...
@@ -34,4 +34,7 @@ public interface XiaoDuHistoryTBRepository extends JpaRepository<XiaoDuHistoryTB