Mapper层:
IPage<Demo> grouplist(Page<Demo> page, @Param(Constants.WRAPPER) QueryWrapper<Demo> queryWrapper);
Xml里面具体sql使用:
以下即可
${ew.customSqlSegment}
<select id="grouplist" resultType="com.demo.Demo">
SELECT * FROM tb_demo
${ew.customSqlSegment}
</select>