15832144755
2022-03-17 bc131131c5c96f8cb3bed679d4a359820c22e335
src/main/java/com/hxzkoa/controller/LocationController.java
@@ -131,6 +131,22 @@
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocationa.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject historicalLocationa(HttpServletRequest request) throws SQLException {
      JSONObject json = new JSONObject();
      String date = request.getParameter("date");
      int aaa = locationService.searchtablenameLocation("tb_track_"+date);
      if (aaa != 0) {
         List<tb_track> trackList = locationService.getTracka(date);
         json.put("dataList", trackList);
      } else {
         List<tb_track> trackList = new ArrayList<>();
         json.put("dataList", trackList);
      }
      return json;
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocation_delete.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void historicalLocation_delete(HttpServletRequest request) {
      String checkValStr = request.getParameter("checkVal");
@@ -141,6 +157,21 @@
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocation_deletea.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int historicalLocation_deletea(HttpServletRequest request) {
      String checkValStr = request.getParameter("checkVal");
      String date = request.getParameter("datea");
      checkValStr = checkValStr.replaceAll("\"", "");
      String[] checkVal = checkValStr.split(",");
      int bbb = locationService.searchtablenameLocation("tb_track_"+date);
      int aaa = 0;
      if (bbb != 0) {
         aaa = locationService.realTimeLocation_deletea(checkVal,date);
      }
      return aaa;
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocation_deleteAll.do", method = { RequestMethod.POST, RequestMethod.GET })
   public void historicalLocation_deleteAll(HttpServletRequest request) {
      String date = request.getParameter("aaaa");
@@ -148,6 +179,18 @@
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocation_deleteAlla.do", method = { RequestMethod.POST, RequestMethod.GET })
   public int historicalLocation_deleteAlla(HttpServletRequest request) {
      String date = request.getParameter("date");
      int bbb = locationService.searchtablenameLocation("tb_track_"+date);
      int aaa = 0;
      if (bbb != 0) {
         aaa = locationService.realTimeLocation_deleteAlla(date);
      }
      return aaa;
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocation_search.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String historicalLocation_search(HttpServletRequest request) {
      String input = request.getParameter("input");
@@ -164,6 +207,23 @@
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocation_searcha.do", method = { RequestMethod.POST, RequestMethod.GET })
   public JSONObject historicalLocation_searcha(HttpServletRequest request) {
      String input = request.getParameter("tagid");
      String date = request.getParameter("date");
      JSONObject json = new JSONObject();
      int aaa = locationService.searchtablenameLocation("tb_track_"+date);
      if (aaa != 0) {
         List<tb_realocation> historicalLocationList = locationService.searchRealTimeLocation(input,date);
         json.put("dataList", historicalLocationList);
      } else {
         List<tb_realocation> abc = new ArrayList<>();
         json.put("dataList", abc);
      }
      return json;
   }
   @ResponseBody
   @RequestMapping(value = "/historicalLocation_page.do", method = { RequestMethod.POST, RequestMethod.GET })
   public String historicalLocation_page(HttpServletRequest request) {
      String pageStr = request.getParameter("page");