
                update RegistryESData
                set RegistryESDataStatus_id = case when  Evn_id in (520101193870992, 520101193877187, 520101194048610, 520101194072355, 520101194086803, 520101194136781, 520101194434820, 520101194444859, 520101194444849, 520101194445346, 520101194447850, 520101194448029, 520101194469585, 520101194576567, 520101194877728, 520101194887050, 520101194887558, 520101195001125, 520101195535763, 520101195535856, 520101195551253, 520101195563084, 520101195595754, 520101195629972, 520101195633661, 520101195642103)  then 2 else 3 end
                where
                    RegistryES_id = '520101000006333'
                    and RegistryESDataStatus_id = 1
            
