From 03d85a496bf4d7883b0cd0e2d4a1f0a373f38fdc Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Fri, 7 Jun 2024 12:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=AE=9A=E4=BD=8D=E8=AF=A6?= =?UTF-8?q?=E7=BB=86=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zcloud/controller/map/MapController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/zcloud/controller/map/MapController.java b/src/main/java/com/zcloud/controller/map/MapController.java index 6f7d7e38..dfea6a2b 100644 --- a/src/main/java/com/zcloud/controller/map/MapController.java +++ b/src/main/java/com/zcloud/controller/map/MapController.java @@ -516,6 +516,17 @@ public class MapController extends BaseController { varList = usersService.findEightsByUserId(pd); map.put("info",byCardNo); map.put("varList", varList); + }else { + String result = HttpUtil.get("https://60.2.110.85:7812/mapi/v1/queryWorkCardLocation?deviceNo="+pd.getString("cardNo")); + Map resultMap = (Map) JSON.parse(result); + String data = resultMap.get("data").toString(); + List dataList = JSONArray.parseArray(data,PageData.class); + PageData pageData = new PageData(); + pageData.put("id",dataList.get(0).getString("devidno")); + pageData.put("DEPARTMENT_NAME",dataList.get(0).getString("deptId")); + pageData.put("NAME",dataList.get(0).getString("fullName")); + pageData.put("POST_NAME",dataList.get(0).getString("workType")); + map.put("info",pageData); } map.put("result", errInfo); return map;