人员定位详细信息

0927cmt
zhaoyu 2024-06-07 12:07:09 +08:00
parent 2ab369db35
commit 03d85a496b
1 changed files with 11 additions and 0 deletions

View File

@ -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<String,Object> resultMap = (Map<String, Object>) JSON.parse(result);
String data = resultMap.get("data").toString();
List<PageData> 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;