<update id="batchChangeOff" > <foreach collection="mussCustTemChange.entrySet()" item="value" index="key" separator=";"> UPDATE mass_custom_template set checked = #{value} where
id = #{key} AND
template_name = #{templateId} </foreach> </update>
还有判断来着
// TODO 找找相关的判断 翻文档