罗蓁蓁

关注

111-mybatis-plus自定义分页查询

罗蓁蓁

关注

阅读 91

2022-10-26

mapper

    User selectNickNameAndUserId(@Param(Constants.WRAPPER) LambdaQueryWrapper<User> queryWrapper);

mapper.xml


 <select id="selectNickNameAndUserId" resultType="com.example.demo.entity.User">
        select
            <if test="ew != null and ew.SqlSelect != null and ew.SqlSelect != ''">
                ${ew.SqlSelect}
            </if>
        from
            user
        ${ew.customSqlSegment}
    </select>

相关推荐

前行的跋涉者

(mybatis-plus 自定义查询分页)

前行的跋涉者 33 0 0

腊梅5朵

Mybatis Plus自定义分页(自动开闭分页)

腊梅5朵 73 0 0

小编

8、Mybatis-Plus 分页插件、自定义分页

小编 126 0 0

罗子僧

MyBatis-Plus分页插件返回自定义类型

罗子僧 81 0 0

驚鴻飛雪

mybatis-plus QueryWrapper自定义查询条件

驚鴻飛雪 44 0 0

天天天蓝loveyou

Mybatis Plus 自定义 TypeHandler

天天天蓝loveyou 54 0 0

林肯公园_97cc

MyBatis-Plus_自定义sql

林肯公园_97cc 72 0 0

码农K

MyBatisPlus多表自定义分页查询

码农K 198 0 0

楠蛮鬼影

MyBatis 自定义IPage 查询

楠蛮鬼影 24 0 0

一叶轻舟okok

mybatis自定义分页拦截器

一叶轻舟okok 31 0 0

精彩评论(0)

0 0 举报