//实体类
private List<String> idList;
//mapper
<update id="updatejsnr" parameterType="com.elitel.jlsjsxm.jsnr.entity.main.ext.Ext01JlszyJsnrB">
update JLSZY_JSNR_B
SET BDID = #{bdid,jdbcType=DECIMAL}
where JSNRID in
<foreach item="idList" index="index" collection="idList" open="(" separator="," close=")">
#{idList}
</foreach>
</update>
有一个idList,包含着很多的应用id,使用这些id查找应用表中对应的应用。
首先需要把List转换为数组,然后执行上述代码