参数污染问题,性能问题,SQL意外重写问题

作者: wkclz创建于 2026年1月30日更新于 2026年1月31日

Scenario: My query parameters include orderBy, and the SQL also includes orderBy, but I didn't use the orderBy in the parameters. At the same time, I didn't enable pagination, but PageHelper rewrote the SQL incorrectly. The process is as follows:

内容来源: pagehelper-org/Mybatis-PageHelper