本文主要是介绍Spring Mybatis 返回ListMapString,Object,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Spring Mybatis 返回List<Map<String,Object>>
List<Map<String,Object>> selectSysArticleForClient(@Param("articleOrder") int articleOrder, @Param("categoryId") String categoryId);
<select id="selectSysArticleForClient" resultType="java.util.Map" parameterType="map">
SELECT ID,TITLE,CREATE_TIME FROM easy_sys_article
WHERE ARTICLE_STATUS = 1
AND ARTICLE_ORDER = #{articleOrder,jdbcType=INTEGER}
AND CATEGORY_ID = #{categoryId,jdbcType=CHAR}
ORDER BY CREATE_TIME DESC
limit 0,6
</select>
这篇关于Spring Mybatis 返回ListMapString,Object的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!