update lims_laboratory.wait_information set state=0 where `rename`=#{rename} and id in (${ids}) update lims_laboratory.wait_information set type=1 where wait_information.state = 1 and `rename`=#{rename} and id in (${ids})