yzt
2023-05-08 24e1c6a1c3d5331b5a4f1111dcbae3ef148eda1a
src/main/java/com/hxzkoa/controller/WarningController.java
@@ -58,7 +58,7 @@
      request.setAttribute("curPage", curPage);
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/warningSummarya.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject warningSummarya(HttpServletRequest request) {
@@ -94,7 +94,7 @@
      }
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/warningSummary_searcha.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject warningSummary_searcha(HttpServletRequest request) throws IOException {
@@ -199,7 +199,7 @@
      request.setAttribute("curPage", curPage);
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/realTimeWarninga.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject realTimeWarninga(HttpServletRequest request) {
@@ -217,7 +217,7 @@
      String[] checkVal = checkValStr.split(",");
      warningService.realinWarning_delete(checkVal);
   }
   @ResponseBody
   @RequestMapping(value = "/realTimeWarning_deletea.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int realTimeWarning_deletea(HttpServletRequest request) {
@@ -233,7 +233,7 @@
   public void realTimeWarning_deleteAll(HttpServletRequest request) {
      warningService.realinWarning_deleteAll();
   }
   @ResponseBody
   @RequestMapping(value = "/realTimeWarning_deleteAlla.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int realTimeWarning_deleteAlla(HttpServletRequest request) {
@@ -267,7 +267,7 @@
      }
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/realTimeWarning_searcha.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject realTimeWarning_searcha(HttpServletRequest request) throws IOException {
@@ -372,7 +372,7 @@
      request.setAttribute("curPage", curPage);
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarninga.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject historicalWarninga(HttpServletRequest request) {
@@ -390,7 +390,7 @@
      String[] checkVal = checkValStr.split(",");
      warningService.historicalWarning_delete(checkVal);
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarning_deletea.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int historicalWarning_deletea(HttpServletRequest request) {
@@ -400,7 +400,7 @@
      int aaa = warningService.historicalWarning_deletea(checkVal);
      return aaa;
   }
   @ResponseBody
   @RequestMapping(value = "/Warning_delete.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void Warning_delete(HttpServletRequest request) {
@@ -419,7 +419,7 @@
         Udp_Out.udp_to_cs(xieyi);
      }
   }
   @ResponseBody
   @RequestMapping(value = "/Warning_deletea.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int Warning_deletea(HttpServletRequest request) {
@@ -445,14 +445,14 @@
   public void historicalWarning_deleteAll(HttpServletRequest request) {
      warningService.historicalWarning_deleteAll();
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarning_deleteAlla.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int historicalWarning_deleteAlla(HttpServletRequest request) {
      int aaa = warningService.historicalWarning_deleteAlla();
      return aaa;
   }
   @ResponseBody
   @RequestMapping(value = "/Warning_deleteAll.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void Warning_deleteAll(HttpServletRequest request) {
@@ -465,7 +465,7 @@
         warningService.Warning_deletefenlei(input);
      }
   }
   @ResponseBody
   @RequestMapping(value = "/Warning_deleteAlla.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int Warning_deleteAlla(HttpServletRequest request) {
@@ -495,7 +495,7 @@
      json.put("curPage", curPage);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarning_searcha.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject historicalWarning_searcha(HttpServletRequest request) {
@@ -579,7 +579,7 @@
      }
      return reList;
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarning_handle.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void historicalWarning_handle(HttpServletRequest request) {
@@ -595,7 +595,7 @@
         Udp_Out.udp_to_cs(xieyi);
      }
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarning_handlea.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int historicalWarning_handlea(HttpServletRequest request) {
@@ -612,7 +612,7 @@
      }
      return aaa;
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarning_handleAll.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void historicalWarning_handleAll(HttpServletRequest request) {
@@ -621,7 +621,7 @@
      String xieyi = "BSTOCS1,DELLWARNALL,END";
      Udp_Out.udp_to_cs(xieyi);
   }
   @ResponseBody
   @RequestMapping(value = "/historicalWarning_handleAlla.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int historicalWarning_handleAlla(HttpServletRequest request) {
@@ -682,7 +682,7 @@
      String[] checkVal = { realinwarning.getTagid() };
      warningService.realinWarning_delete(checkVal);
   }
   @ResponseBody
   @RequestMapping(value = "/shaileixing.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String shaileixing(HttpServletRequest request) {
@@ -692,7 +692,7 @@
      json.put("dataList", labelManagementList);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/shaizhuangtai.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String shaizhuangtai(HttpServletRequest request) {
@@ -702,7 +702,7 @@
      json.put("dataList", labelManagementList);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/shuangshai.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String shuangshai(HttpServletRequest request) {
@@ -713,7 +713,7 @@
      json.put("dataList", labelManagementList);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/warningexport.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String warningexport(HttpServletRequest request, HttpServletResponse response) {
@@ -735,7 +735,7 @@
      }
      return fileName;
   }
   @RequestMapping(value = "/permissionManagement.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String permissionManagement(HttpServletRequest request) {
      String toPage = "forward:/hxzk/warning/permissionManagement.jsp";
@@ -750,7 +750,7 @@
      request.setAttribute("curPage", curPage);
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/permissionManagement_page.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String permissionManagement_page(HttpServletRequest request) {
@@ -780,7 +780,7 @@
      json.put("curPage", page);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/permissionManagementupdate.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void permissionManagementupdate(HttpServletRequest request) {
@@ -809,7 +809,7 @@
//       Udp_Out.udp_to_cs(xieyi);
//    }
   }
   @ResponseBody
   @RequestMapping(value = "findidpermission.do", method = {RequestMethod.POST,RequestMethod.GET})
   public String findidpermission(HttpServletRequest request) {
@@ -819,7 +819,7 @@
      json.put("dataList", tag);
      return json.toString();
   }
   @RequestMapping(value = "/permissionManagement2.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String permissionManagement2(HttpServletRequest request) {
      String toPage = "forward:/hxzk/warning/permissionManagement2.jsp";
@@ -832,7 +832,7 @@
      request.setAttribute("curPage", curPage);
      return toPage;
   }
   @RequestMapping(value = "deletepermission.do", method= {RequestMethod.POST,RequestMethod.GET})
   public void deletepermission(HttpServletRequest request) {
      String checkValStr = request.getParameter("checkVal");
@@ -842,12 +842,12 @@
         warningService.Warning_deleteper(checkVal[i]);
      }
   }
   @RequestMapping(value = "deletepermission2.do", method= {RequestMethod.POST,RequestMethod.GET})
   public void deletepermission2(HttpServletRequest request) {
      warningService.Warning_deleteper2();
   }
   @ResponseBody
   @RequestMapping(value = "/permission_page.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String permission_page(HttpServletRequest request) {
@@ -876,7 +876,7 @@
      json.put("curPage", page);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "findidpermission2.do", method = {RequestMethod.POST,RequestMethod.GET})
   public String findidpermission2(HttpServletRequest request) {
@@ -886,7 +886,7 @@
      json.put("dataList", tag);
      return json.toString();
   }
   @RequestMapping(value="tomessagem.do",method= {RequestMethod.POST,RequestMethod.GET})
   public String tomessagem(HttpServletRequest request) {
      String toPage = "forward:/hxzk/label/messageManagement.jsp";
@@ -899,7 +899,7 @@
      request.setAttribute("curPage", curPage);
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/message_page.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String message_page(HttpServletRequest request) {
@@ -928,7 +928,7 @@
      json.put("curPage", page);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/message_export.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String message_export(HttpServletRequest request, HttpServletResponse response) {
@@ -952,7 +952,7 @@
      }
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/message_delete.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void message_delete(HttpServletRequest request) {
@@ -961,13 +961,13 @@
      String[] checkVal = checkValStr.split(",");
      warningService.message_delete(checkVal);
   }
   @ResponseBody
   @RequestMapping(value = "/message_deletea.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void message_deletea(HttpServletRequest request) {
      warningService.message_deletea();
   }
   @ResponseBody
   @RequestMapping(value = "/message_search.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String message_search(HttpServletRequest request) throws IOException {
@@ -994,7 +994,7 @@
      }
      return json.toString();
   }
   @RequestMapping(value="tolixian.do",method= {RequestMethod.POST,RequestMethod.GET})
   public String tolixian(HttpServletRequest request) {
      String toPage = "forward:/hxzk/label/lixianManagement.jsp";
@@ -1007,7 +1007,7 @@
      request.setAttribute("curPage", curPage);
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/lixian_page.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String lixian_page(HttpServletRequest request) {
@@ -1036,7 +1036,7 @@
      json.put("curPage", page);
      return json.toString();
   }
   @ResponseBody
   @RequestMapping(value = "/lixian_export.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String lixian_export(HttpServletRequest request, HttpServletResponse response) {
@@ -1060,7 +1060,7 @@
      }
      return toPage;
   }
   @ResponseBody
   @RequestMapping(value = "/lixian_delete.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void lixian_delete(HttpServletRequest request) {
@@ -1069,13 +1069,13 @@
      String[] checkVal = checkValStr.split(",");
      warningService.lixian_delete(checkVal);
   }
   @ResponseBody
   @RequestMapping(value = "/lixian_deletea.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void lixian_deletea(HttpServletRequest request) {
      warningService.lixian_deletea();
   }
   @ResponseBody
   @RequestMapping(value = "/lixian_search.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String lixian_search(HttpServletRequest request) throws IOException {
@@ -1102,59 +1102,59 @@
      }
      return json.toString();
   }
   // 作业信息 导出表格 对象转数组
         public static List<Object[]> objectToArray_job(List<tb_warning> history_powerList) {
            List<Object[]> reList = new ArrayList<>();
            for (int i = 0; i < history_powerList.size(); i++) {
               List<String> words = new ArrayList<String>();
               tb_warning history_power = (tb_warning) history_powerList.get(i);
               words.add(history_power.getId() + "");
               words.add(history_power.getBaoliu2());
               words.add(history_power.getBaoliu3());
               words.add(history_power.getObjectid());
               words.add(history_power.getTime());
               words.add(history_power.getType());
               words.add(history_power.getBaoliu1());
               String[] array = words.toArray(new String[0]);
               reList.add(array);
            }
            return reList;
         }
         public static List<Object[]> objectToArray_warningSummary2(List<tb_message_history> tb_warningList) {
            List<Object[]> reList = new ArrayList<>();
            for (int i = 0; i < tb_warningList.size(); i++) {
               List<String> words = new ArrayList<String>();
               tb_message_history warn = tb_warningList.get(i);
               words.add(warn.getId() + "");
               words.add(warn.getTagid());
               words.add(warn.getBaoliu1());
               words.add(warn.getUsername());
               words.add(warn.getInfo());
               words.add(warn.getSendtime());
               words.add(warn.getReplytime());
               words.add(warn.getBaoliu2());
               String[] array = words.toArray(new String[0]);
               reList.add(array);
            }
            return reList;
         }
         public static List<Object[]> objectToArray_warningSummary3(List<tb_lixianrecord> tb_warningList) {
            List<Object[]> reList = new ArrayList<>();
            for (int i = 0; i < tb_warningList.size(); i++) {
               List<String> words = new ArrayList<String>();
               tb_lixianrecord warn = tb_warningList.get(i);
               words.add(warn.getId() + "");
               words.add(warn.getTagid());
               words.add(warn.getName());
               words.add(warn.getBumen());
               words.add(warn.getPhone());
               words.add(warn.getTime());
               String[] array = words.toArray(new String[0]);
               reList.add(array);
            }
            return reList;
         }
   public static List<Object[]> objectToArray_job(List<tb_warning> history_powerList) {
      List<Object[]> reList = new ArrayList<>();
      for (int i = 0; i < history_powerList.size(); i++) {
         List<String> words = new ArrayList<String>();
         tb_warning history_power = (tb_warning) history_powerList.get(i);
         words.add(history_power.getId() + "");
         words.add(history_power.getBaoliu2());
         words.add(history_power.getBaoliu3());
         words.add(history_power.getObjectid());
         words.add(history_power.getTime());
         words.add(history_power.getType());
         words.add(history_power.getBaoliu1());
         String[] array = words.toArray(new String[0]);
         reList.add(array);
      }
      return reList;
   }
   public static List<Object[]> objectToArray_warningSummary2(List<tb_message_history> tb_warningList) {
      List<Object[]> reList = new ArrayList<>();
      for (int i = 0; i < tb_warningList.size(); i++) {
         List<String> words = new ArrayList<String>();
         tb_message_history warn = tb_warningList.get(i);
         words.add(warn.getId() + "");
         words.add(warn.getTagid());
         words.add(warn.getBaoliu1());
         words.add(warn.getUsername());
         words.add(warn.getInfo());
         words.add(warn.getSendtime());
         words.add(warn.getReplytime());
         words.add(warn.getBaoliu2());
         String[] array = words.toArray(new String[0]);
         reList.add(array);
      }
      return reList;
   }
   public static List<Object[]> objectToArray_warningSummary3(List<tb_lixianrecord> tb_warningList) {
      List<Object[]> reList = new ArrayList<>();
      for (int i = 0; i < tb_warningList.size(); i++) {
         List<String> words = new ArrayList<String>();
         tb_lixianrecord warn = tb_warningList.get(i);
         words.add(warn.getId() + "");
         words.add(warn.getTagid());
         words.add(warn.getName());
         words.add(warn.getBumen());
         words.add(warn.getPhone());
         words.add(warn.getTime());
         String[] array = words.toArray(new String[0]);
         reList.add(array);
      }
      return reList;
   }
}