ibatis sqlMapClient.queryForList 返回结果集,执行的SQL语句能查询到多条记录,到DAO里只有一条,求解
DAO代码:Listlist=sqlMapClient.queryForList("gxart_topic_image.selectImagesList",ids);re...
DAO 代码:
List list = sqlMapClient.queryForList("gxart_topic_image.selectImagesList", ids);
return list;
XML配置:
<select id="selectImagesList" resultMap="abatorgenerated_GxartTopicImageResult" parameterClass="String" >
<!--
批量查询某条内容的图片集
-->
select id, tid, site_url, photo, name, description, filesize, width, height, uid, username,
item, itemid, dateline, image_url, albumid
from gxart_topic_image where id in (#value#)
</select> 展开
List list = sqlMapClient.queryForList("gxart_topic_image.selectImagesList", ids);
return list;
XML配置:
<select id="selectImagesList" resultMap="abatorgenerated_GxartTopicImageResult" parameterClass="String" >
<!--
批量查询某条内容的图片集
-->
select id, tid, site_url, photo, name, description, filesize, width, height, uid, username,
item, itemid, dateline, image_url, albumid
from gxart_topic_image where id in (#value#)
</select> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询