From 3516f02277035cdc7ff137422709b16efe97ca4a Mon Sep 17 00:00:00 2001
From: 15832144755 <67030627+15832144755@users.noreply.github.com>
Date: 星期五, 27 八月 2021 11:27:21 +0800
Subject: [PATCH] 8.27

---
 src/main/java/com/hxzkoa/controller/ZhwController.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/hxzkoa/controller/ZhwController.java b/src/main/java/com/hxzkoa/controller/ZhwController.java
index be7fb97..79349b1 100644
--- a/src/main/java/com/hxzkoa/controller/ZhwController.java
+++ b/src/main/java/com/hxzkoa/controller/ZhwController.java
@@ -34,6 +34,7 @@
 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;
@@ -249,6 +250,7 @@
 			position.setTime(node.getP_addtiem());
 			position.setFence(node.getP_fence());
 			position.setSousuo(node.getP_sousuo());
+			position.setShipin(node.getP_shipin());
 			
 			finalPositionList.add(position);
 		}
@@ -431,7 +433,20 @@
 //			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;
@@ -741,6 +756,19 @@
 		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");

--
Gitblit v1.10.0