xxxMapper.xml中编写sql语句时有order by的注意点
项目场景:
项目场景:根据输入的id集合查找数据库中符合的id并按照输入id集合的顺序输出
问题描述:
在编写如下xml语句时
<select id="selectRank" parameterType="java.util.List" resultType="com.betterlf.myblog.entity.Blog">
select * from m_blog
where id in
<foreach
原创
2021-03-12 12:13:10 ·
2978 阅读 ·
0 评论