map批量更新语句
int updateLastLoginTime(@Param(“map”) Map<String, Date> map);
<!-- 从缓存更新数据库最新记录时间 -->
<update id="updateLastLoginTime">
<foreach collection="map" index="key" item="value" separator=";">
update t_app_user set
<if test="value != null">
last_login_time_new = #{value,jdbcType=Date,jdbcType=TIMESTAMP}
</if>
where id = #{key}
</foreach>
</update>