Commit dca04b4b by admin

es处理

parent 1047ba32
......@@ -210,7 +210,9 @@ public class ESUtil {
log.info("金融结束");
} catch (Exception e) {
log.error("es检索出错,错误信息【{}】", e);
}
} finally {
esClient.close();
}
for (NewsResult news : result) {
for (String source : sources) {
if (news.getSource().contains(source)) {
......
......@@ -230,6 +230,7 @@ public class MainController {
excel.setSite(0);
excel.setSurplusCount(list.size());
excel.setStartDate("未开始");
log.info("数据量"+list.size());
System.out.println(list.size());
lists.add(excel);
if (!ExcelReadAndWrite.runStrat) {
......
......@@ -91,7 +91,7 @@ h5 {
tbody.append("<tr class='TR'>"
+"<td class='id'>"+e.site+"</td>"
+"<td>"+e.mail+"</td>"
+"<td>"+e.surplusCount/12+"</td>"
+"<td>"+e.surplusCount/20+"</td>"
+"<td>"+e.startDate+"</td>"
+"<td>"+e.state+"</td>"
+"<td>"+e.surplusCount+"</td>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment