|
@@ -46,6 +46,7 @@ public class SQLiteImp implements SQLiteService {
|
|
|
String querySQL = "select 图层名,合法方式,有效性 from 管控信息表";
|
|
|
//ResultSet resultSet = sqliteHelper.executeQuery(querySQL,new RowMapper<String>(){});
|
|
|
ResultSet resultSet = statement.executeQuery(querySQL);
|
|
|
+// while (resultSet.hasN()) {
|
|
|
while (resultSet.next()) {
|
|
|
String layerName = resultSet.getString("图层名");
|
|
|
String type = resultSet.getString("合法方式");
|
|
@@ -61,7 +62,10 @@ public class SQLiteImp implements SQLiteService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ String updateInlegal = "update 当前检查图斑 set 合法性判断 = '疑似违法' where 合法性判断 is null and 合法性说明 like '%疑似%'";
|
|
|
+ Boolean resultUpdateInlegal = statement.execute(updateInlegal);
|
|
|
+ String updateLegal = "update 当前检查图斑 set 合法性判断 = '合法用地' where 合法性判断 is null and 合法性说明 like '%符合%'";
|
|
|
+ Boolean resultUpdateLegal = statement.execute(updateLegal);
|
|
|
} catch (ClassNotFoundException e) {
|
|
|
e.printStackTrace();
|
|
|
} catch (SQLException e) {
|