| | |
| | | GeometryFactory geometryFactory; |
| | | WKTReader reader; |
| | | SimpleDateFormat sdf; |
| | | |
| | | |
| | | public RemoteController() { |
| | | this.geometryFactory = new GeometryFactory(); |
| | | this.reader = new WKTReader(this.geometryFactory); |
| | | this.sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getMultiPersonlocations" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用多个人员定位接口获取定位信息并将其融合") |
| | | @ResponseBody |
| | |
| | | map.put("list", newList); |
| | | return map; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getRTCMultiPersonlocations" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("从缓存获取人员信息") |
| | | @ResponseBody |
| | |
| | | final Object object = this.getMultiPersonlocations(shopId, modId, modKey, pageNum, pageSize, value); |
| | | return object; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getPersonlocation" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用单个人员定位接口获取定位信息并将其融合") |
| | | @ResponseBody |
| | |
| | | final ResponseEntity<String> responseEntity1 = (ResponseEntity<String>)restTemplate.getForEntity(this.configInfo.getUWB_Historylocation() + "?apikey=" + this.configInfo.getApikey() + "&userId={userId}&shopId={shopId}&startTime={startTime}&endTime={endTime}", (Class)String.class, (Map)params1); |
| | | final String body1 = (String)responseEntity1.getBody(); |
| | | final JSONObject jsonObjectResult1 = JSONObject.parseObject(body1); |
| | | System.out.println(jsonObjectResult1.get((Object)"data")); |
| | | //System.out.println(jsonObjectResult1.get((Object)"data")); |
| | | if (jsonObjectResult1 != null) { |
| | | final JSONArray jsonArray1 = (JSONArray)jsonObjectResult1.get((Object)"data"); |
| | | final List<UWBHistoryInfo> list1 = (List<UWBHistoryInfo>)jsonArray1.toJavaList((Class)UWBHistoryInfo.class); |
| | |
| | | final ResponseEntity<String> responseEntity2 = (ResponseEntity<String>)restTemplate.postForEntity(this.configInfo.getGPS_Historylocation()+ "?apikey=" + this.configInfo.getApikey(), (Object)httpEntity, (Class)String.class, new Object[0]); |
| | | final String body2 = (String)responseEntity2.getBody(); |
| | | final JSONObject jsonObjectResult2 = JSONObject.parseObject(body2); |
| | | System.out.println(jsonObjectResult2.get((Object)"data")); |
| | | //System.out.println(jsonObjectResult2.get((Object)"data")); |
| | | final JSONObject object = (JSONObject)jsonObjectResult2.get((Object)"data"); |
| | | if (object != null) { |
| | | final JSONArray jsonArray2 = (JSONArray)object.get((Object)"statisticList"); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getMultiHistorylocationByName" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用多个人员历史轨迹接口获取相关信息并将其融合(输入姓名)") |
| | | @ResponseBody |
| | |
| | | } |
| | | return hisInfo; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/oldgetHistorylocation" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用单个人员历史轨迹接口获取相关信息并将其融合(未补点)") |
| | | @ResponseBody |
| | |
| | | hisInfo.add(historyRoute); |
| | | return hisInfo; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getHistorylocation" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用单个人员历史轨迹接口获取相关信息并将其融合(输入ID)") |
| | | @ResponseBody |
| | |
| | | hisInfo.add(historyRoute); |
| | | return hisInfo; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getMultiHistorylocation" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用多个人员历史轨迹接口获取相关信息并将其融合(输入ID)") |
| | | @ResponseBody |
| | |
| | | } |
| | | return hisInfo; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getConfigInfo" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("获取配置信息") |
| | | @ResponseBody |
| | |
| | | configinfo.put("dzzzUrl", this.configInfo.getDzzzUrl()); |
| | | return configinfo; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getAllHistorylocation" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用所有人员历史轨迹接口获取相关信息并将其融合") |
| | | @ResponseBody |
| | |
| | | } |
| | | return hisInfo; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/sendMessageToUWB" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("sendMessageToUWB") |
| | | @ResponseBody |
| | |
| | | final ResponseEntity<String> responseEntity = (ResponseEntity<String>)restTemplate.postForEntity(uwbUrl+ "?apikey=" + this.configInfo.getApikey(), (Object)httpEntity, (Class)String.class, new Object[0]); |
| | | return responseEntity.getBody(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = { "/getMultiYQPersonlocations" }, method = { RequestMethod.POST }) |
| | | @ApiOperation("远程调用多个人员定位接口获取定位信息") |
| | | @ResponseBody |
| | |
| | | RemoteController.log.info("map" + map.toString()); |
| | | return map; |
| | | } |
| | | |
| | | |
| | | private List<FencePositionYQ> getFencePositionYQ() { |
| | | final List<FencePositionYQ> yqList = new ArrayList<FencePositionYQ>(); |
| | | final FencePositionYQ yq11 = new FencePositionYQ(); |
| | |
| | | yqList.add(yq16); |
| | | return yqList; |
| | | } |
| | | |
| | | |
| | | static { |
| | | log = LoggerFactory.getLogger((Class)RemoteController.class); |
| | | } |