|
|
|
@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
|
|
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
|
|
|
|
|
@SpringBootTest
|
|
|
|
@ -35,7 +36,7 @@ class SolarenergyApplicationTests {
|
|
|
|
|
try {
|
|
|
|
|
//1、接口实例化
|
|
|
|
|
SurfEleInterface surfEleInterface = new SurfEleInterface();
|
|
|
|
|
surfEleInterface.setUserConfig("10.96.90.120","80","BCCD_BFNA_NCGFZX", "NCgongfu123!");
|
|
|
|
|
surfEleInterface.setUserConfig("10.194.90.120","80","BCCD_BFNA_NCGFZX", "NCgongfu123!");
|
|
|
|
|
log.debug("1---接口初始化成功");
|
|
|
|
|
//2、接口参数实例化
|
|
|
|
|
//需要传数据数据代码
|
|
|
|
@ -43,7 +44,13 @@ class SolarenergyApplicationTests {
|
|
|
|
|
log.debug("2---接口查询参数");
|
|
|
|
|
//3、设置查询时间,可设置时间段
|
|
|
|
|
musicQueryParameters.setTimes("20241126080000");
|
|
|
|
|
|
|
|
|
|
ArrayList<String> objects = new ArrayList<>();
|
|
|
|
|
objects.add("Station_Id_C");
|
|
|
|
|
objects.add("Lat");
|
|
|
|
|
objects.add("Lon");
|
|
|
|
|
objects.add("V14311");
|
|
|
|
|
objects.add("SSH");
|
|
|
|
|
musicQueryParameters.setElements(objects);
|
|
|
|
|
//可设置站号
|
|
|
|
|
//设置经纬度范围
|
|
|
|
|
//可设置站事情
|
|
|
|
|