
                update RegistryESData
                set RegistryESDataStatus_id = case when  (1=0)  then 2 else 3 end
                where
                    RegistryES_id = '140101000083874'
                    and RegistryESDataStatus_id = 1
            
