|
@@ -721,11 +721,12 @@ public class YztServiceImpl implements IYztService {
|
|
if (type.equals("外部")) {
|
|
if (type.equals("外部")) {
|
|
yztMapper.executeAnalyse(tablename, tableName, layerName, decimalPlaces, null);
|
|
yztMapper.executeAnalyse(tablename, tableName, layerName, decimalPlaces, null);
|
|
} else if (type.equals("内部")) {
|
|
} else if (type.equals("内部")) {
|
|
- String updateInside = String.format("update " + tablename + " as c set " +
|
|
|
|
- "合法性说明 = case when c.合法性说明 is null then '' else c.合法性说明 || ';' end || '符合%s用地'," +
|
|
|
|
- "面积 = case when 面积 is null then '' else 面积 end || round(cast( ST_Area(ST_Intersection(c.geom,d.geom)) as numeric), 2) || ';' " +
|
|
|
|
- "from %s d where ST_Covers ( c.geom, d.geom )", layerName, tableName);
|
|
|
|
- sqlOverlap.add(updateInside);
|
|
|
|
|
|
+ yztMapper.executeAnalyseNb(tablename, tableName, layerName, decimalPlaces, null);
|
|
|
|
+// String updateInside = String.format("update " + tablename + " as c set " +
|
|
|
|
+// "合法性说明 = case when c.合法性说明 is null then '' else c.合法性说明 || ';' end || '符合%s用地'," +
|
|
|
|
+// "面积 = case when 面积 is null then '' else 面积 end || round(cast( ST_Area(ST_Intersection(c.geom,d.geom)) as numeric), 2) || ';' " +
|
|
|
|
+// "from %s d where ST_Covers ( c.geom, d.geom )", layerName, tableName);
|
|
|
|
+// sqlOverlap.add(updateInside);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String updateInlegal = "update " + tablename + " set 合法性判断 = '疑似违法' where 合法性说明 like '%疑似%'";
|
|
String updateInlegal = "update " + tablename + " set 合法性判断 = '疑似违法' where 合法性说明 like '%疑似%'";
|