|
@@ -1,5 +1,7 @@
|
|
|
package com.fdkanfang.web.backend;
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.bean.copier.CopyOptions;
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -428,7 +430,7 @@ public class HouseController extends BaseController {
|
|
|
if(null != house){
|
|
|
house.setImages(images);
|
|
|
HouseResponse houseResponse = new HouseResponse();
|
|
|
- BeanUtils.copyProperties(house , houseResponse);
|
|
|
+ BeanUtil.copyProperties(house ,houseResponse , CopyOptions.create().setIgnoreNullValue(true).setIgnoreError(true));
|
|
|
if(null != house.getUserId()){
|
|
|
UserEntity uploader = userService2.findById(house.getUserId());
|
|
|
if(null != uploader){
|