|
@@ -1,13 +1,10 @@
|
|
|
package com.ebei.screen.controller.eba;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ebei.screen.common.response.ResponseBean;
|
|
|
-import com.ebei.screen.common.util.EbaUtils;
|
|
|
import com.ebei.screen.service.EbaSystemService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
@@ -25,30 +22,6 @@ public class EbaSystemController {
|
|
|
@Autowired
|
|
|
private EbaSystemService ebaSystemService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private MongoTemplate mongoTemplate;
|
|
|
-
|
|
|
- @PostMapping("test")
|
|
|
- public String test() {
|
|
|
- //EbaUtils.insertMobjectList();
|
|
|
- JSONObject map1 = EbaUtils.deviceSystem;
|
|
|
- JSONObject map2 = EbaUtils.deviceType;
|
|
|
- JSONObject map3 = EbaUtils.deviceParam;
|
|
|
- JSONObject map4 = EbaUtils.deviceAlarmType;
|
|
|
- JSONObject map5 = EbaUtils.fireDeviceType;
|
|
|
- JSONObject xx1 = map1.getJSONObject("4");
|
|
|
- JSONObject xx2 = map2.getJSONObject("100");
|
|
|
- JSONObject xx3 = map3.getJSONObject("5");
|
|
|
- JSONObject xx4 = map4.getJSONObject("4");
|
|
|
- JSONObject xx5 = map5.getJSONObject("4");
|
|
|
- System.out.println(xx1);
|
|
|
- System.out.println(xx2);
|
|
|
- System.out.println(xx3);
|
|
|
- System.out.println(xx4);
|
|
|
- System.out.println(xx5);
|
|
|
- return "success";
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 初始化数据
|
|
|
*/
|