
                update RegistryESData
                set RegistryESDataStatus_id = case when  Evn_id in (140101024148554, 140101024151095, 140101024152185)  then 2 else 3 end
                where
                    RegistryES_id = '140101000084444'
                    and RegistryESDataStatus_id = 1
            
