@SuppressWarnings("static-access") public void run() { log.info("线程开始======strVin:" + strVin + "strDate:" + strDate); MyCountDown myCount = MyCountDown.instance(); myCount.countAdd(); try { // 获取实时数据 this.realTimeRecord = reportDAO.getRecord(strVin, strDate); analyseREAl(); // 分析实时数据 reportDAO.updateCsdsDataXc(strVin, strDate, "32"); // 超转 reportDAO.updateCsdsDataXc(strVin, strDate, "49"); // 空档滑行 reportDAO.updateCsdsDataXc(strVin, strDate, "46"); // 超长怠速 reportDAO.updateCsdsDataXc(strVin, strDate, "50"); // 空调怠速 reportDAO.updateCsdsDataXc(strVin, strDate, "51"); // 非经济区运行 reportDAO.updateCsdsDataXc(strVin, strDate, "81"); // 疲劳驾驶 reportDAO.updateCsdsDataXc(strVin, strDate, "33"); // 生成非法点火,和告警明细 reportDAO.makczdetail(strVin, strDate); // 校车异常乘车统计2012-03-14 // reportDAO.xcYcStatistics(strVin, strDate); // 校车上座率统计2012-03-14 // reportDAO.xcSzlStatistics(strVin, strDate); // 校车非法点火 reportDAO.updateCsdsDataXc(strVin, strDate, "54"); // 校车超载 reportDAO.updateCsdsDataXc(strVin, strDate, "72"); // 更新结束时间 reportDAO.updateEndData(strVin, strDate); myCount.countDown(); // 线程结束 log.info("线程结束======strVin:" + strVin + ",strDate:" + strDate); this.interrupted(); } catch (Exception e) { myCount.countDown(); e.printStackTrace(); log.info("报表分析线程异常=strVin:" + strVin + ",strDate:" + strDate + e.toString()); this.interrupted(); return; } }