| | |
| | | import com.hxzkoa.json.tb_person; |
| | | import com.hxzkoa.json.tb_realocation; |
| | | import com.hxzkoa.json.tb_realpositoin; |
| | | import com.hxzkoa.json.tb_shipin; |
| | | import com.hxzkoa.json.tb_system; |
| | | import com.hxzkoa.json.tb_tag; |
| | | import com.hxzkoa.json.tb_track; |
| | |
| | | position.setTime(node.getP_addtiem()); |
| | | position.setFence(node.getP_fence()); |
| | | position.setSousuo(node.getP_sousuo()); |
| | | position.setShipin(node.getP_shipin()); |
| | | |
| | | finalPositionList.add(position); |
| | | } |
| | |
| | | // Timestamp ts = Timestamp.valueOf(timeRecent); |
| | | // long times = ts.getTime(); |
| | | // if (times >= timeStart) { |
| | | // int jingdu = node.getGsp_jingdu().length(); |
| | | // System.out.print("执行了"+jingdu); |
| | | if (node.getGsp_jingdu() != null) { |
| | | // String weidu = node.getGps_weidu().substring(0,node.getGps_weidu().length()-1); |
| | | // node.setGps_weidu(weidu); |
| | | // String jingdu2 = node.getGsp_jingdu().substring(0, node.getGsp_jingdu().length()-1); |
| | | // node.setGsp_jingdu(jingdu2); |
| | | finalGPSList.add(node); |
| | | } |
| | | // String weidu = node.getGps_weidu().substring(0,node.getGps_weidu().length()-1); |
| | | // node.setGps_weidu(weidu); |
| | | // String jingdu = node.getGsp_jingdu().substring(0, node.getGsp_jingdu().length()-1); |
| | | // node.setGsp_jingdu(jingdu); |
| | | // finalGPSList.add(node); |
| | | // } |
| | | }; |
| | | return finalGPSList; |
| | |
| | | ZhwService.fencegao(tagid); |
| | | } |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/shipinzhuangtai.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public List<tb_shipin> shipinzhuangtai(HttpServletRequest request){ |
| | | String tagid=request.getParameter("tagid"); |
| | | ZhwService.shipin(tagid); |
| | | List<tb_person> fencename = ZhwService.getfencename(tagid); |
| | | // System.out.print(fencename.get(0).getP_fencename()); |
| | | List<tb_shipin> id = ZhwService.getshebeiid(fencename.get(0).getP_fencename()); |
| | | // System.out.print(id.get(0).getShebeiid()); |
| | | List<tb_shipin> bb =null; |
| | | return id; |
| | | } |
| | | |
| | | @RequestMapping(value = "/sousuo.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void sousuo(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
| | | String tagid = request.getParameter("tagid"); |