15832144755
2021-11-18 37336922a1df99ac1636e398e12e64dedfba10e5
src/main/java/com/hxzkoa/controller/ShowController.java
@@ -94,6 +94,7 @@
//       }
//    }
      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();
@@ -129,25 +130,25 @@
      }
      // 实时考勤
      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();
@@ -194,7 +195,7 @@
//    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);
@@ -226,7 +227,7 @@
      }
      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());
@@ -278,8 +279,8 @@
   
   @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;
   }