update tempering_glass_relation_info set shelf_order = null , state = 0 where flow_card_id = #{flowCardId} and layer = #{layer} and shelf_order not in ( select shelf_order from vertical_sheet_cage_details where flow_card_id = #{flowCardId} and layer = #{layer} and state in (100, 102, 103, 104) )