update t_app_user set isVip = 0 where isVip = 1 and now() >= vipEndTime update t_app_user set state = #{state} AND t_app_user.id IN #{id}