当前位置 : 主页 > 编程语言 > java >

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

来源:互联网 收集:自由互联 发布时间:2022-10-26
mapper User selectNickNameAndUserId(@Param(Constants.WRAPPER) LambdaQueryWrapperUser queryWrapper); mapper.xml select id=selectNickNameAndUserId resultType=com.example.demo.entity.User select if test=ew != null and ew.SqlSelect != null and

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>
上一篇:jdk安装教程win10_jdk安装教程win10详细视频
下一篇:没有了
网友评论