In this case, the local government or property management authorities should provide compensation to the affected party according to the area of the demolished building and the area of the newly acquired building. The compensation should take into account the population of the affected party, so that they can adequately compensate the affected party for the loss of the flat and other belongings. In addition, the local government should also provide relocation allowances to the affected party, to help them with the cost of moving to the new location.