大屏看板二级界面初始化数据
This commit is contained in:
parent
3a27008798
commit
30a103c378
|
|
@ -180,6 +180,28 @@ public class KanbanController extends ControllerBase{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 二级界面初始化数据
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("initialize2")
|
||||||
|
public ApiResult<String> initialize2(){
|
||||||
|
JSONArray array=new JSONArray();
|
||||||
|
String getdata1=HttpOfGet(KANBAN_URL+"getdata2","type","alarm");
|
||||||
|
JSONObject jsonObject1 = JSONUtil.parseObj(getdata1);
|
||||||
|
array.add(jsonObject1);
|
||||||
|
String getdata2=HttpOfGet(KANBAN_URL+"getdata2","type","device");
|
||||||
|
JSONObject jsonObject2 = JSONUtil.parseObj(getdata2);
|
||||||
|
array.add(jsonObject2);
|
||||||
|
String getdata3=HttpOfGet(KANBAN_URL+"getdata2","type","chart");
|
||||||
|
JSONObject jsonObject3 = JSONUtil.parseObj(getdata3);
|
||||||
|
array.add(jsonObject3);
|
||||||
|
String getdata4=HttpOfGet(KANBAN_URL+"getdata2","type","other");
|
||||||
|
JSONObject jsonObject4 = JSONUtil.parseObj(getdata4);
|
||||||
|
array.add(jsonObject4);
|
||||||
|
return ApiResult.success(array.toString());
|
||||||
|
}
|
||||||
|
|
||||||
public static String DateTimeToStr(LocalDateTime localDateTime ){
|
public static String DateTimeToStr(LocalDateTime localDateTime ){
|
||||||
ZonedDateTime zonedDateTime = localDateTime.atZone(ZoneOffset.UTC);
|
ZonedDateTime zonedDateTime = localDateTime.atZone(ZoneOffset.UTC);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue