<update id="UpdatePwd" parameterType="java.util.List"> UPDATE FP_USER_BASE SET PASSWORD = <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end"> WHEN #{item.id,jdbcType=BIGINT} THEN #{item.password,jdbcType=VARCHAR} </foreach> </update>