15832144755
2021-11-18 37336922a1df99ac1636e398e12e64dedfba10e5
src/main/java/com/hxzkoa/controller/LocationController.java
@@ -106,12 +106,12 @@
      Date date = new Date(System.currentTimeMillis());
      SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
      String currentDate = formatter.format(date);
      System.out.print(currentDate);
      //System.out.print(currentDate);
      List<tb_track> trackList = locationService.getTrack(currentDate, 1, perPage);
      request.setAttribute("historicalLocationList", trackList);
      int curPage = 1;
      int count = locationService.getRealTimeLocationCount(currentDate);
      System.out.print(count);
      //System.out.print(count);
      int minPage = PageUtil.getMinPage(count);
      request.setAttribute("pageList", PageUtil.getPage(minPage));
      request.setAttribute("curPage", curPage);
@@ -197,7 +197,7 @@
      json.put("dataList", trackList);
      json.put("pageList", pageList);
      json.put("curPage", page);
      System.out.print(pageList);
      //System.out.print(pageList);
      return json.toString();
   }
@@ -272,8 +272,8 @@
// @RequestMapping(value = "/shishi.do", method = { RequestMethod.POST, RequestMethod.GET })
// public void shiyan(HttpServletRequest request) throws IOException {
//    String jsonString = RequestUtils.getRequestJsonString(request, Config.getCharset());
//    System.out.print(jsonString);
//    System.out.print("执行力我");
//    //System.out.print(jsonString);
//    //System.out.print("执行力我");
//    tb_tag tag = (tb_tag) JSONObject.toBean(JSONObject.fromObject(jsonString), tb_tag.class);
//    locationService.tag_time(tag);
// }