中铁十一局添加接口
This commit is contained in:
parent
cf5e43b2fe
commit
af64fb3879
@ -22,6 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@ -121,6 +122,9 @@ public class ZtWorkerController {
|
||||
requestMap.put("project_id", "1833149331474493441");
|
||||
requestMap.put("device_numbers", "E03C1CB2A0EF1607");
|
||||
String post = HttpUtil.post("http://spm3.1357.cn/hewu-api/api/realtime-records-by-time", JSON.toJSONString(requestMap));
|
||||
if (!post.contains("[")) {
|
||||
return Result.success(new ArrayList<>());
|
||||
}
|
||||
return Result.success(JSONArray.parseArray(post));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user