update lims_laboratory.inspection_product set test_state=null where id = #{id} and state = 1 update lims_laboratory.inspection_product set state=0 where inspection_material_id=#{id}