Commit f60af084 authored by 赵啸非's avatar 赵啸非

重新调整统计线程实现

parent b4c14a0d
...@@ -76,11 +76,11 @@ public class AccessController extends BaseCRUDJsonBodyMappingController<AccessSe ...@@ -76,11 +76,11 @@ public class AccessController extends BaseCRUDJsonBodyMappingController<AccessSe
accessQuery.setAccessTimeStart(null); accessQuery.setAccessTimeStart(null);
accessQuery.setAccessTimeEnd(null); accessQuery.setAccessTimeEnd(null);
List<SitePdu> statSiteList = accessService.getStatSiteList(accessQuery); List<SitePdu> statSiteList = accessService.getStatSiteList(accessQuery);
for (SitePdu site : statSiteList) { //for (SitePdu site : statSiteList) {
StatThread statThread = new StatThread(attendStart, compare, site, context, StatThread statThread = new StatThread(attendStart, compare, statSiteList, context,
Arrays.asList(StatTypeEnum.STAT_PH.getValue(), StatTypeEnum.STAT_PJ.getValue(), StatTypeEnum.STAT_ALL.getValue())); Arrays.asList(StatTypeEnum.STAT_PH.getValue(), StatTypeEnum.STAT_PJ.getValue(), StatTypeEnum.STAT_ALL.getValue()));
ThreadPool.getInstance().execute(statThread); ThreadPool.getInstance().execute(statThread);
} // }
model.put("message_info", busiDesc + "成功"); model.put("message_info", busiDesc + "成功");
this.recordSysLog(this.request, busiDesc + " 【成功】"); this.recordSysLog(this.request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
......
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