老设备 接口替换
This commit is contained in:
parent
7657965e6c
commit
d8399956cf
|
@ -57,12 +57,12 @@ public class EquTask {
|
||||||
// List<ThDevice> equLists = thDeviceMapper.selectDeviceList(thDevice);
|
// List<ThDevice> equLists = thDeviceMapper.selectDeviceList(thDevice);
|
||||||
// equLists.forEach(e->{
|
// equLists.forEach(e->{
|
||||||
HashMap<String, Object> map = new HashMap<>();
|
HashMap<String, Object> map = new HashMap<>();
|
||||||
|
token = "28e73f2d211f3ac211313a1aa61dc0c5";
|
||||||
map.put("token",token);
|
map.put("token",token);
|
||||||
HttpResult result = OkHttps.sync("http://10.205.51.190:30100/device/getGasDeviceList?token={token}")
|
HttpResult result = OkHttps.sync("http://10.205.51.190:30100/device/getGasDeviceList?token={token}")
|
||||||
.addPathPara(map)
|
.addPathPara(map)
|
||||||
.addHeader("token", token)
|
.addHeader("token", token)
|
||||||
.get();
|
.post();
|
||||||
JSONObject vocByJson = result.getBody().toBean(JSONObject.class);
|
JSONObject vocByJson = result.getBody().toBean(JSONObject.class);
|
||||||
System.out.println("---------------------------------"+vocByJson);
|
System.out.println("---------------------------------"+vocByJson);
|
||||||
JSONArray vocByArray = vocByJson.getJSONArray("data");
|
JSONArray vocByArray = vocByJson.getJSONArray("data");
|
||||||
|
|
Loading…
Reference in New Issue