原创

Mybatis-mapper xml 查询返回map结果


List<Map<String,Object>> getLawsListByCond(@Param("ids")List<Integer> ids);
<!--查询法规台账-->
<select id="getLawsListByCond" resultType="java.util.Map">
select
faguiid,faguimingcheng,faguiwenjian,leixing,fabudanweibiaozhunda,shishiriqi,
zhuanyeleibie,shiyongfanwei,zhuguanbumen,zhuguanbumenfuzeren,chuangjianriqi
from faguiqingdanku
<where>
`disable` != 1
<if test="ids != null and ids.size()>0">
and id in
<foreach collection="ids" item="id" index="index"
open="(" close=")" separator=",">
#{id}
</foreach>
</if>
</where>
</select>
正文到此结束
本文目录