当前位置:网站首页>Pagehepler lost the pit of the original SQL order by condition

Pagehepler lost the pit of the original SQL order by condition

2022-07-23 14:20:00 banmajio

pageHepler Lost original sql order by Conditional pit

Reference link :https://blog.csdn.net/qq_37269881/article/details/120347130

1. primary sql

 Insert picture description here
As shown in the figure ,sql There are two order by Of .

2. PageHepler Generated sql

 Insert picture description here
As shown in the figure , And the original sql comparison , Two are missing order by Conditions .

3. Solution

stay mybatis Of xml in ,sql Add : /keep orderby/

As shown in the figure :
 Insert picture description here

原网站

版权声明
本文为[banmajio]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207230807308603.html