<foreach collection="packages" item="p" separator=";"> update package set package_name = #{p.packageName}, package_content = #{p.packageContent} where id = #{p.id}</foreach>