Mybatis遍歷Map集合(Java/Mybatis動態排序)

以動態order by爲例,即經過if和foreach標籤動態拼接order by的排序字段。動態排序的案例詳見最下面的測試。java Mapper.xmlweb <select id="dynamicOrder" resultType="com.p7.demo.model.Person"> select * from person <if test="orderBy != null and
相關文章
相關標籤/搜索