111-mybatis-plus自定义分页查询
发布时间:2022-10-28 05:41:28 346
相关标签:
mapper
User selectNickNameAndUserId(@Param(Constants.WRAPPER) LambdaQueryWrapper 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>
文章来源: https://blog.51cto.com/u_14816966/5796695
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报