<select id="selectTableFromFormCode" parameterType="java.lang.String" resultType="java.util.Map">
select *
from ${formCode}
<where>
<if test="ids != null and ids != ''">
id in ${ids}
</if>
</where>
</select>
ids是拼接的id的字符串
String ids="('001','002','003')";