| | |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:getMeasureByEquipName')") |
| | | @ApiOperation("获取某个油井测点列表") |
| | | @ApiOperation("根据name获取某个油井测点列表") |
| | | @GetMapping("getMeasureByEquipName") |
| | | public Results getMeasureByEquipName(String equipNumber){ |
| | | String url = configService.getHealth(); |
| | |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:getMeasureByEquipKey')") |
| | | @ApiOperation("获取某个油井测点列表") |
| | | @ApiOperation("根据key获取某个油井测点列表") |
| | | @GetMapping("getMeasureByEquipKey") |
| | | public Results getMeasureByEquipKey(GetFMTrendParam getFMTrendParam){ |
| | | public Results getMeasureByEquipKey(String equipKey){ |
| | | JSONObject j = new JSONObject(); |
| | | String url = configService.getHealth(); |
| | | |
| | | return Results.succeed(); |
| | | //获取设备的测点列表 |
| | | Map<String, Object> hashMap = new HashMap<String, Object>(); |
| | | hashMap.put("EquipKey", equipKey); |
| | | String eResult = ARDSoapUtil.postSoapResult(url, "GetMeasureByEquipKey", hashMap); |
| | | if ("".equals(eResult)) { |
| | | //返回结果为空 |
| | | return Results.succeed("没有测点信息"); |
| | | } |
| | | Map<String, Object> map1 = (Map<String, Object>) JSON.parse((String) eResult); |
| | | if ((int) map1.get("code") == 200) { |
| | | j.put("code", map1.get("code")); |
| | | List<Map<String, Object>> list = (List<Map<String, Object>>) JSON.parse((String) map1.get("resdata")); |
| | | j.put("listResult", list); |
| | | } |
| | | return Results.succeed(j); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('sy:syCar:GetPartsAlertLeve')") |