|
@@ -578,7 +578,7 @@ public class YyskAddressStandardizationServiceImpl {
|
|
DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss");
|
|
DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss");
|
|
String output = dateTime.format(outputFormatter);
|
|
String output = dateTime.format(outputFormatter);
|
|
data.put(key, output);
|
|
data.put(key, output);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
data.put(key, ScheduledTasks.timestampToFormat(item.get(key).toString()));
|
|
data.put(key, ScheduledTasks.timestampToFormat(item.get(key).toString()));
|
|
}
|
|
}
|
|
} else if (key.equals("anchedate")) {
|
|
} else if (key.equals("anchedate")) {
|
|
@@ -600,6 +600,16 @@ public class YyskAddressStandardizationServiceImpl {
|
|
datas.clear();
|
|
datas.clear();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (datas.size() > 0) {
|
|
|
|
+ dataList.put("data", datas);
|
|
|
|
+ try {
|
|
|
|
+ System.out.println(AddressQueryEngine.getInstance().putDataToSJ_Big_Data3(dataList));
|
|
|
|
+ System.out.println("补录数据条数:" + datas.size());
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ datas.clear();
|
|
|
|
+ }
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
@@ -734,7 +744,7 @@ public class YyskAddressStandardizationServiceImpl {
|
|
}
|
|
}
|
|
if (startFileIndex + sort != endFileIndex) {
|
|
if (startFileIndex + sort != endFileIndex) {
|
|
startFileIndex += sort;
|
|
startFileIndex += sort;
|
|
- readFileToPg(fileRootPath, startFileIndex, endFileIndex, sort, pageSize);
|
|
|
|
|
|
+ readFileToKafka(fileRootPath, startFileIndex, endFileIndex, sort, pageSize);
|
|
} else {
|
|
} else {
|
|
System.out.println("<<<<<<<<------任务处理完成!");
|
|
System.out.println("<<<<<<<<------任务处理完成!");
|
|
}
|
|
}
|