|
@@ -163,6 +163,7 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
|
|
+ * 不动产汇交数据生成主逻辑
|
|
|
*
|
|
*
|
|
|
* 1.表名
|
|
* 1.表名
|
|
|
* 2.调查登记标识。
|
|
* 2.调查登记标识。
|
|
@@ -172,6 +173,7 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
* 6.批量传递,分2次查询。一次一张表。
|
|
* 6.批量传递,分2次查询。一次一张表。
|
|
|
* 7.采用各自判断,多查一次。
|
|
* 7.采用各自判断,多查一次。
|
|
|
* 二次if()else
|
|
* 二次if()else
|
|
|
|
|
+ * (1.日志补全。2.林权测试。3.过滤vildFlag.4.补全其他表。5.根据不同表,不动产代码进行条件传递判断。6.宗地代码根据名称区分)
|
|
|
*
|
|
*
|
|
|
*
|
|
*
|
|
|
*
|
|
*
|
|
@@ -186,7 +188,7 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
throw new ServiceException("汇交入参,类型错误"+type);
|
|
throw new ServiceException("汇交入参,类型错误"+type);
|
|
|
}
|
|
}
|
|
|
if (StringUtils.isBlank(batch)) {
|
|
if (StringUtils.isBlank(batch)) {
|
|
|
- batch = DateUtils.dateTimeNow(DateUtils.YYYYMMDDHH);
|
|
|
|
|
|
|
+ batch = DateUtils.dateTimeNow(DateUtils.YYYYMMDDHHMMSS);
|
|
|
//batch = "123";
|
|
//batch = "123";
|
|
|
}
|
|
}
|
|
|
Converge converge = new Converge();
|
|
Converge converge = new Converge();
|
|
@@ -286,7 +288,7 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
subConvergeTableList.add(convergeResTmp);
|
|
subConvergeTableList.add(convergeResTmp);
|
|
|
|
|
|
|
|
for(String tableName : Constant.ZD_GEOM_TABLE_LIST){
|
|
for(String tableName : Constant.ZD_GEOM_TABLE_LIST){
|
|
|
- //这里处理所有属性数据(实现一个方法,把)遍历循环
|
|
|
|
|
|
|
+ //这里处理所有关联数据(实现一个方法)遍历循环,获取到数据后,进行封装ConvergeRes对象,放到currentTypeConvergeTableList中
|
|
|
ConvergeRes otherTableConvergeResTmp = getOtherTableDataList(tableName, convergeResTmp);
|
|
ConvergeRes otherTableConvergeResTmp = getOtherTableDataList(tableName, convergeResTmp);
|
|
|
if(Objects.nonNull(otherTableConvergeResTmp)){
|
|
if(Objects.nonNull(otherTableConvergeResTmp)){
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
@@ -325,7 +327,11 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }finally {
|
|
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new ServiceException("衍生数据查询失败");
|
|
|
|
|
+ }
|
|
|
|
|
+ finally {
|
|
|
log.info("----------------宅基地使用权和房屋所有权/02已调查已登记 处理end。。。。。");
|
|
log.info("----------------宅基地使用权和房屋所有权/02已调查已登记 处理end。。。。。");
|
|
|
}
|
|
}
|
|
|
}//end if 已调查已经登记
|
|
}//end if 已调查已经登记
|
|
@@ -450,6 +456,9 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new ServiceException("衍生数据查询失败");
|
|
|
}finally {
|
|
}finally {
|
|
|
log.info("----------------5集体建设用地使用权和房屋所有权/02已调查已登记 处理end。。。。。");
|
|
log.info("----------------5集体建设用地使用权和房屋所有权/02已调查已登记 处理end。。。。。");
|
|
|
}
|
|
}
|
|
@@ -473,6 +482,9 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new ServiceException("衍生数据查询失败");
|
|
|
}finally {
|
|
}finally {
|
|
|
log.info("----------------宅基地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
log.info("----------------宅基地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
|
}
|
|
}
|
|
@@ -503,6 +515,9 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new ServiceException("衍生数据查询失败");
|
|
|
}finally {
|
|
}finally {
|
|
|
log.info("----------------宅基地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
log.info("----------------宅基地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
|
}
|
|
}
|
|
@@ -572,6 +587,9 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new ServiceException("衍生数据查询失败");
|
|
|
}finally {
|
|
}finally {
|
|
|
log.info("----------------宅基地使用权和房屋所有权/02已调查已登记 处理end。。。。。");
|
|
log.info("----------------宅基地使用权和房屋所有权/02已调查已登记 处理end。。。。。");
|
|
|
}
|
|
}
|
|
@@ -596,6 +614,9 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new ServiceException("衍生数据查询失败");
|
|
|
}finally {
|
|
}finally {
|
|
|
log.info("----------------6国有建设用地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
log.info("----------------6国有建设用地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
|
}
|
|
}
|
|
@@ -626,6 +647,9 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
currentTypeConvergeTableList.add(otherTableConvergeResTmp);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new ServiceException("衍生数据查询失败");
|
|
|
}finally {
|
|
}finally {
|
|
|
log.info("----------------6国有建设用地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
log.info("----------------6国有建设用地使用权和房屋所有权/01已调查已登记处理end。。。。。");
|
|
|
}
|
|
}
|
|
@@ -930,9 +954,12 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- //todo 需要查询当前表结构,根据表字段,确定是否有validFlag字段,还要确定,是通过,bdcdyh 或者 zddm 进行的查询
|
|
|
|
|
- // dataType 1 矢量数据,2属性数据 dataStatus 1 已调查已登记,2 已调查未登记
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 根据传入的表名称和参数,查询当前表数据,并封装成ConvergeRes返回
|
|
|
|
|
+ * @param tableName
|
|
|
|
|
+ * @param convergeRes
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
public ConvergeRes getOtherTableDataList(String tableName , ConvergeRes convergeRes) {
|
|
public ConvergeRes getOtherTableDataList(String tableName , ConvergeRes convergeRes) {
|
|
|
ConvergeRes resultConvergeRes = null;
|
|
ConvergeRes resultConvergeRes = null;
|
|
|
List<Map<String, Object>> paramDataList = convergeRes.getDataList();
|
|
List<Map<String, Object>> paramDataList = convergeRes.getDataList();
|