| | |
| | | // } |
| | | // } |
| | | String toPage = "forward:/hxzk/index.jsp"; |
| | | //String toPage = "forward:/hxzk/mapshow/mapShow.jsp"; |
| | | // 基站信息 |
| | | List<tb_achor> anchorManagementList = anchorService.getAnchorManagementsi(); |
| | | // List<tb_shebei> shebei = anchorService.getShebei(); |
| | |
| | | } |
| | | |
| | | // 实时考勤 |
| | | List<vo_kaoqin_p> realAttendanceList = attendanceService.getRealAttendance(1); |
| | | List<vo_kaoqin_p> reRealAttendanceList = new ArrayList<vo_kaoqin_p>(); |
| | | if (realAttendanceList.size()>4){ |
| | | for (int i = 0; i < 4; i++) { |
| | | String time =realAttendanceList.get(i).getIntime(); |
| | | time = time.split(" ")[1]; |
| | | time = time.split("\\.")[0]; |
| | | realAttendanceList.get(i).setIntime(time); |
| | | reRealAttendanceList.add(realAttendanceList.get(i)); |
| | | } |
| | | } else { |
| | | for (int i = 0; i < realAttendanceList.size(); i++) { |
| | | String time =realAttendanceList.get(i).getIntime(); |
| | | time = time.split(" ")[1]; |
| | | time = time.split("\\.")[0]; |
| | | realAttendanceList.get(i).setIntime(time); |
| | | reRealAttendanceList.add(realAttendanceList.get(i)); |
| | | } |
| | | } |
| | | // List<vo_kaoqin_p> realAttendanceList = attendanceService.getRealAttendance(1); |
| | | // List<vo_kaoqin_p> reRealAttendanceList = new ArrayList<vo_kaoqin_p>(); |
| | | // if (realAttendanceList.size()>4){ |
| | | // for (int i = 0; i < 4; i++) { |
| | | // String time =realAttendanceList.get(i).getIntime(); |
| | | // time = time.split(" ")[1]; |
| | | // time = time.split("\\.")[0]; |
| | | // realAttendanceList.get(i).setIntime(time); |
| | | // reRealAttendanceList.add(realAttendanceList.get(i)); |
| | | // } |
| | | // } else { |
| | | // for (int i = 0; i < realAttendanceList.size(); i++) { |
| | | // String time =realAttendanceList.get(i).getIntime(); |
| | | // time = time.split(" ")[1]; |
| | | // time = time.split("\\.")[0]; |
| | | // realAttendanceList.get(i).setIntime(time); |
| | | // reRealAttendanceList.add(realAttendanceList.get(i)); |
| | | // } |
| | | // } |
| | | |
| | | // 告警汇总 |
| | | Map warningSummaryTypeMap = warningService.getWarningSummaryType(); |
| | |
| | | // request.setAttribute("shebei", shebei); |
| | | request.setAttribute("anchorManagementList", anchorManagementList); |
| | | request.setAttribute("labelManagementList", reLabelManagementList); |
| | | request.setAttribute("realAttendanceList", reRealAttendanceList); |
| | | // request.setAttribute("realAttendanceList", reRealAttendanceList); |
| | | request.setAttribute("reWarningSummary_k", reWarningSummary_k); |
| | | request.setAttribute("reWarningSummary_v", reWarningSummary_v); |
| | | request.setAttribute("realAttendance_k", realAttendance_k); |
| | |
| | | } |
| | | String filePath = Config.getBaowenConfig(); |
| | | ModifyConfig.writeData(filePath, "baowenSwitch", "0"); |
| | | System.out.print(filePath); |
| | | //System.out.print(filePath); |
| | | ModifyConfig.writeData(filePath, "debugSwitch", "0"); |
| | | clearInfoForFile(request.getServletContext().getRealPath("/")+Config.getYuanshiMessagePath()); |
| | | clearInfoForFile(request.getServletContext().getRealPath("/")+Config.getHEXMessagePath()); |
| | |
| | | |
| | | @RequestMapping(value = "/setgongzhongnum.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | @ResponseBody |
| | | public List<Integer> setgongzhongnum(){ |
| | | List<Integer> gongzhongnum = attendanceService.getgongzhongnum(); |
| | | public List<Object> setgongzhongnum(){ |
| | | List<Object> gongzhongnum = attendanceService.getgongzhongnum(); |
| | | return gongzhongnum; |
| | | } |
| | | |
| | | @RequestMapping(value = "/setgaojingnum.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | @ResponseBody |
| | | public List<Integer> setgaojingnum(){ |
| | | List<Integer> gaojingnum = attendanceService.getgaojingnum(); |
| | | return gaojingnum; |
| | | public JSONObject setgaojingnum(){ |
| | | // List<Integer> gaojingnum = attendanceService.getgaojingnum(); |
| | | // return gaojingnum; |
| | | JSONObject jsons = new JSONObject(); |
| | | Map warningSummaryTypeMap = warningService.getWarningSummaryType(); |
| | | List<String> reWarningSummary_k = new ArrayList<String>(); |
| | | List<Integer> reWarningSummary_v = new ArrayList<Integer>(); |
| | | Iterator<String> warningSummaryTypeIter = warningSummaryTypeMap.keySet().iterator(); |
| | | while (warningSummaryTypeIter.hasNext()) { |
| | | String key = warningSummaryTypeIter.next(); |
| | | reWarningSummary_k.add(key); |
| | | reWarningSummary_v.add((int) warningSummaryTypeMap.get(key)); |
| | | } |
| | | jsons.put("key", reWarningSummary_k); |
| | | jsons.put("value", reWarningSummary_v); |
| | | return jsons; |
| | | } |
| | | |
| | | } |