|
@@ -9,6 +9,8 @@ import com.gyee.frame.service.WindturbineinfodayService;
|
|
|
import lombok.SneakyThrows;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
|
+import java.util.Calendar;
|
|
|
+
|
|
|
public class RelationalDataBaseTest {
|
|
|
|
|
|
@SneakyThrows
|
|
@@ -23,11 +25,18 @@ public class RelationalDataBaseTest {
|
|
|
//
|
|
|
// List<Line> ls=lineService.selectByExample(lineExample);
|
|
|
|
|
|
- Windturbineinfoday wt=windturbineinfodayService.findListByDate("CL01_001","2020-05-14");
|
|
|
- Windpowerinfoday wp=windpowerinfodayService.findListByDate("CL_FDC","2020-05-14");
|
|
|
+ Calendar c = Calendar.getInstance();
|
|
|
+
|
|
|
+ c.set(Calendar.HOUR_OF_DAY, 0);
|
|
|
+ c.set(Calendar.MINUTE, 0);
|
|
|
+ c.set(Calendar.SECOND, 0);
|
|
|
+
|
|
|
+ Windturbineinfoday wt=windturbineinfodayService.findListByDate("CL01_001",c.getTime());
|
|
|
+ Windpowerinfoday wp=windpowerinfodayService.findListByDate("CL_FDC",c.getTime());
|
|
|
|
|
|
System.out.println(wt.getRecorddate()+ "___" +wt.getGeneratingcapacity2());
|
|
|
- System.out.println(wp.getRecorddate()+ "___" +wp.getGeneratingcapacity2());
|
|
|
+ System.out.println(wp.getRecorddate()+ "___" +wp.getDaylyxs());
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|