update com_act_raffle_record set status = 3 where raffle_id = #{id} and status = 1