|
@@ -1,5 +1,6 @@
|
|
|
package com.sckw.slope.detection.service;
|
|
package com.sckw.slope.detection.service;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.sckw.slope.detection.dao.tdengine.SlopeDataMapper;
|
|
import com.sckw.slope.detection.dao.tdengine.SlopeDataMapper;
|
|
|
import com.sckw.slope.detection.model.dos.tdengine.SlopeData;
|
|
import com.sckw.slope.detection.model.dos.tdengine.SlopeData;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -19,5 +20,8 @@ public class TdengineDemoService {
|
|
|
|
|
|
|
|
public void tdengineDemo() {
|
|
public void tdengineDemo() {
|
|
|
List<SlopeData> list = slopeDataMapper.selectAll();
|
|
List<SlopeData> list = slopeDataMapper.selectAll();
|
|
|
|
|
+ System.out.println(JSONObject.toJSONString(list));
|
|
|
|
|
+ List<SlopeData> list1 = slopeDataMapper.selectList();
|
|
|
|
|
+ System.out.println(JSONObject.toJSONString(list1));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|