|
|
|
|
@ -164,7 +164,7 @@ public class SqliteUtils {
|
|
|
|
|
idxBegDate = h.getBegdate();
|
|
|
|
|
}
|
|
|
|
|
System.out.println(sqlList.size());
|
|
|
|
|
String insertIdxTableSql = "INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('" + DateTimeUtil.getFormateString(now, Constant.YYYY_MM_DD_HH_MM_SS) + "','" + idxVersion + "','" + sqlList.size() + "','" + DateTimeUtil.getFormateString(idxBegDate, Constant.YYYY_MM_DD_HH_MM_SS) + "')";
|
|
|
|
|
String insertIdxTableSql = "INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('" + DateTimeUtil.getFormateString(now, Constant.YYYY_MM_DD_HH_MM_SS) + "','" + idxVersion + "','" + sqlList.size() + "','" + DateTimeUtil.getFormateString(idxBegDate, Constant.YYYY_MM_DD_HH_MM_SS) + "')";
|
|
|
|
|
long start2 = System.currentTimeMillis();
|
|
|
|
|
int count = insertSqlite(url, sqlList, insertIdxTableSql);
|
|
|
|
|
long end2 = System.currentTimeMillis();
|
|
|
|
|
@ -218,7 +218,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -263,14 +263,14 @@ public class SqliteUtils {
|
|
|
|
|
String idxBegDate = "";
|
|
|
|
|
for (Map<String, Object> map : mapList) {
|
|
|
|
|
idxBegDate = (String) map.get("BEGDATE");
|
|
|
|
|
String insertSql = new StringBuilder().append("INSERT INTO ROADCODE (BEGDATE, AREANO,SUBAREANO ,SAREANAME ,ROADNO ,STANO ,STAID ,ROADNAME , STANAME , FREEPOS , DISCOUNT , SUBCOMNO , STATYPE , AREAEDGE , IGANTRYID , IGANTRYHEX , OGANTRYID , OGANTRYHEX ) VALUES(")
|
|
|
|
|
String insertSql = new StringBuilder().append("INSERT INTO ROADCODE (BEGDATE, AREANO,SUBAREANO ,SUBAREANAME ,ROADNO ,STANO ,GBSTATIONID ,ROADNAME , STANAME , FREEPOS , DISCOUNT , SUBCOMNO , STATYPE , AREAEDGE , IGANTRYID , IGANTRYHEX , OGANTRYID , OGANTRYHEX ) VALUES(")
|
|
|
|
|
.append("'").append(map.getOrDefault("BEGDATE", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("AREANO", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("SUBAREANO", Constant.ZERO)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("SAREANAME", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("SUBAREANAME", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("ROADNO", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("STANO", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("STAID", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("GBSTATIONID", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("ROADNAME", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("STANAME", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
.append("'").append(map.getOrDefault("FREEPOS", Constant.NULL_STRING)).append("'").append(",")
|
|
|
|
|
@ -286,7 +286,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -342,7 +342,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -405,7 +405,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -471,7 +471,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -536,7 +536,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -597,7 +597,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -661,7 +661,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -719,7 +719,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -783,7 +783,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -846,7 +846,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -915,7 +915,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -981,7 +981,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(idxVersion).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1087,7 +1087,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1167,7 +1167,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1228,7 +1228,7 @@ public class SqliteUtils {
|
|
|
|
|
statement.executeUpdate(insertSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEADATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
String insertIdxTableSql = new StringBuilder().append("INSERT INTO IDX_TABLE (CREATETIME,VERSION,RECCOUNT ,BEGDATE) VALUES('").append(idxBegDate).append("','").append(version).append("','").append(mapList.size()).append("','").append(idxBegDate).append("')").toString();
|
|
|
|
|
statement.executeUpdate(insertIdxTableSql);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|