Use MybatisPlus pagination plugin data duplication problem

1. Problem recurrence

The query is reversed according to update_date, and the update_date of some data is the same
insert image description here

2. Problem solving

Adding a unique index (such as id) in reverse order can solve this problem.
Note: If you want to sort according to update_date first and then perform id sorting, the id sorting should be placed after update_date
insert image description here

3. Cause of the problem

Refer to: https://blog.csdn.net/qq_34905631/article/details/130350856

Guess you like

Origin blog.csdn.net/Gpointy/article/details/131304074