ibatis查询用list做参数,查询出一个list出来

来源:互联网 发布:电脑壁纸软件 编辑:程序博客网 时间:2024/06/05 07:17
<select id="isThemeTagInSameTheme" resultClass="java.lang.String"parameterClass="java.util.ArrayList">select theme_name themeName from t_theme where theme_id in<iterate open="(" close=")" conjunction=",">#themeIdList[].themeId#            </iterate></select>


查询的时候,查询的参数是themeIdList里面的themeId