It isn’t very clear what you pasted but what I think I see here is that:
You have a transitive dependency that depend on pagehelper version 5.1.4 (your line 1: com.github.pagehelper:pagehelper:5.1.4)
That same dependence also depends on jsqlparser3.1 (your line 3: com.github.jsqlparser:jsqlparser:3.1).
The pagehelper itself depends on jsqlparser1.0. Gradle “knows” this (from its stated dependencies - you don’t need to restate this) and shows it: com.github.jsqlparser:jsqlparser:1.0. However, because you cannot have two different versions of the same dependency it has to choose one and it chose newer. It indicated this by showing -> 3.1.
That version conflict has to be resolved. You see what Gradle does. If you wish to resolve it differently, you may want to read the following when you have time: