|
@@ -17,6 +17,7 @@ import com.siwei.apply.service.third.TakeDataService;
|
|
|
import com.siwei.apply.utils.HttpClientUtil;
|
|
import com.siwei.apply.utils.HttpClientUtil;
|
|
|
import com.siwei.apply.utils.ServiceUtil;
|
|
import com.siwei.apply.utils.ServiceUtil;
|
|
|
import com.siwei.common.core.exception.ServiceException;
|
|
import com.siwei.common.core.exception.ServiceException;
|
|
|
|
|
+import com.siwei.common.core.utils.DateUtils;
|
|
|
import com.siwei.common.core.utils.StringUtils;
|
|
import com.siwei.common.core.utils.StringUtils;
|
|
|
import com.siwei.common.core.utils.bean.BeanUtils;
|
|
import com.siwei.common.core.utils.bean.BeanUtils;
|
|
|
import com.siwei.spatial.api.RemoteSpatialFilesDbService;
|
|
import com.siwei.spatial.api.RemoteSpatialFilesDbService;
|
|
@@ -333,8 +334,13 @@ public class TakeDataServiceImpl implements TakeDataService {
|
|
|
String remoteResult = ServiceUtil.getRemoteDataByHttpClient("query.landRegist.datas",paramMap);
|
|
String remoteResult = ServiceUtil.getRemoteDataByHttpClient("query.landRegist.datas",paramMap);
|
|
|
JSONObject root = JSON.parseObject(remoteResult);
|
|
JSONObject root = JSON.parseObject(remoteResult);
|
|
|
//todo 这里需要确认用户返回的是数组还是对象
|
|
//todo 这里需要确认用户返回的是数组还是对象
|
|
|
- JSONObject innerData = (JSONObject) root.getJSONObject("data").getJSONArray("data").get(0);
|
|
|
|
|
|
|
+ JSONObject checkInnerData = root.getJSONObject("data");
|
|
|
|
|
+ if(!checkInnerData.get("code").equals("200")){
|
|
|
|
|
+ log.warn("当前业务不存在,业务号:{},返回数据: {}", ywh,checkInnerData);
|
|
|
|
|
+ return retMap;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ JSONObject innerData = (JSONObject) root.getJSONObject("data").getJSONArray("data").get(0);
|
|
|
LandFirstParamVo body = JSON.parseObject(innerData.toString(), LandFirstParamVo.class);
|
|
LandFirstParamVo body = JSON.parseObject(innerData.toString(), LandFirstParamVo.class);
|
|
|
if(Objects.nonNull(body)){
|
|
if(Objects.nonNull(body)){
|
|
|
//todo 这里需要确认是否返回ywh字段
|
|
//todo 这里需要确认是否返回ywh字段
|
|
@@ -352,7 +358,7 @@ public class TakeDataServiceImpl implements TakeDataService {
|
|
|
retMap.put("nodeId",addNodeId);
|
|
retMap.put("nodeId",addNodeId);
|
|
|
}
|
|
}
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
- log.error("调用矢量保存文件错误,业务编号:{}: ", ywh);
|
|
|
|
|
|
|
+ log.error("调用不动产土地首登记数据保存错误,业务编号:{}: ", ywh);
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
}
|
|
@@ -666,7 +672,7 @@ public class TakeDataServiceImpl implements TakeDataService {
|
|
|
try {
|
|
try {
|
|
|
//todo 这里需要同步房屋明细数据
|
|
//todo 这里需要同步房屋明细数据
|
|
|
// 同步完成后再次修改更新当前节点数据。把统计信息更新到数据表中。
|
|
// 同步完成后再次修改更新当前节点数据。把统计信息更新到数据表中。
|
|
|
- // todo 这里需要分页进行查询,并且把数据都同步完毕。
|
|
|
|
|
|
|
+ // 这里需要分页进行查询,并且把数据都同步完毕。
|
|
|
// 既然开启了同步,需要把当前业务号的数据进行删除。
|
|
// 既然开启了同步,需要把当前业务号的数据进行删除。
|
|
|
// 数据同步完成后,再计算统计数据,然后修改主表数据。
|
|
// 数据同步完成后,再计算统计数据,然后修改主表数据。
|
|
|
if(MapUtils.isNotEmpty(retMap)){
|
|
if(MapUtils.isNotEmpty(retMap)){
|
|
@@ -698,6 +704,9 @@ public class TakeDataServiceImpl implements TakeDataService {
|
|
|
Fwmx fwmx = new Fwmx();
|
|
Fwmx fwmx = new Fwmx();
|
|
|
fwmx.generateId();
|
|
fwmx.generateId();
|
|
|
BeanUtils.copyProperties(body, fwmx);
|
|
BeanUtils.copyProperties(body, fwmx);
|
|
|
|
|
+ fwmx.setKfdw(body.getQlr()); //权利人
|
|
|
|
|
+ Date djDate = DateUtils.parseDate(body.getDjrq());
|
|
|
|
|
+ fwmx.setGzdgzsj(djDate);//登记日期
|
|
|
fwmxMapper.add(fwmx);
|
|
fwmxMapper.add(fwmx);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|