|
@@ -25,7 +25,7 @@ public class GetWindStationInfo {
|
|
|
|
|
|
//查询当月天数,返回当月每天的数据,日发电量,日上网电量,日购网电量
|
|
|
|
|
|
- public List<MeterInfoVO> getMeterInfoFDC() {
|
|
|
+ public List<MeterInfoVO> getMeterInfoFDC_Day() {
|
|
|
|
|
|
//当前时间
|
|
|
DateTime now = DateTime.now();
|
|
@@ -58,7 +58,7 @@ public class GetWindStationInfo {
|
|
|
if (oneSWDL != null) {
|
|
|
rswdl = oneSWDL.getValue();
|
|
|
}
|
|
|
- if (oneSWDL != null) {
|
|
|
+ if (oneGWDL != null) {
|
|
|
rgwdl = oneGWDL.getValue();
|
|
|
}
|
|
|
|
|
@@ -76,4 +76,52 @@ public class GetWindStationInfo {
|
|
|
|
|
|
return list;
|
|
|
}
|
|
|
+
|
|
|
+ public MeterInfoVO getMeterInfoFDCFDL_DayMonthYear() {
|
|
|
+ //当前时间
|
|
|
+ DateTime now = DateTime.now();
|
|
|
+ //当天开始时间
|
|
|
+ DateTime beginOfDay = DateUtil.beginOfDay(now);
|
|
|
+ //当月开始时间
|
|
|
+ DateTime beginOfMonth = DateUtil.beginOfMonth(now);
|
|
|
+ //当年开始时间
|
|
|
+ DateTime beginOfYear = DateUtil.beginOfYear(now);
|
|
|
+ //当月天数
|
|
|
+ int days = DateUtil.dayOfMonth(now);
|
|
|
+
|
|
|
+ //根据时间和code查询风场日发电量,日上网电量
|
|
|
+ MeterInfoCalculating dayFDL = meterInfoCalculatingService.getOne(new QueryWrapper<MeterInfoCalculating>().eq("code", "DL.NX_GD_WINDSTATIONFDL_DAY").eq("date", beginOfDay));
|
|
|
+ MeterInfoCalculating monthFDL = meterInfoCalculatingService.getOne(new QueryWrapper<MeterInfoCalculating>().eq("code", "DL.NX_GD_WINDSTATIONFDL_MONTH").eq("date", beginOfMonth));
|
|
|
+ MeterInfoCalculating yearFDL = meterInfoCalculatingService.getOne(new QueryWrapper<MeterInfoCalculating>().eq("code", "DL.NX_GD_WINDSTATIONFDL_YEAR").eq("date", beginOfYear));
|
|
|
+ MeterInfoCalculating oneSWDL = meterInfoCalculatingService.getOne(new QueryWrapper<MeterInfoCalculating>().eq("code", "DL.NX_GD_WINDSTATIONSWDL_DAY").eq("date", beginOfDay));
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ BigDecimal rfdl = BigDecimal.valueOf(0);
|
|
|
+ BigDecimal yfdl = BigDecimal.valueOf(0);
|
|
|
+ BigDecimal nfdl = BigDecimal.valueOf(0);
|
|
|
+ BigDecimal rswdl = BigDecimal.valueOf(0);
|
|
|
+
|
|
|
+ if (dayFDL != null) {
|
|
|
+ rfdl = dayFDL.getValue();
|
|
|
+ }
|
|
|
+ if (monthFDL != null) {
|
|
|
+ yfdl = monthFDL.getValue();
|
|
|
+ }
|
|
|
+ if (yearFDL != null) {
|
|
|
+ nfdl = yearFDL.getValue();
|
|
|
+ }
|
|
|
+ if (oneSWDL != null) {
|
|
|
+ rswdl = oneSWDL.getValue();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ MeterInfoVO meterInfoVO = new MeterInfoVO();
|
|
|
+ meterInfoVO.setDayFDL(rfdl);
|
|
|
+ meterInfoVO.setMonthFDL(yfdl);
|
|
|
+ meterInfoVO.setYearFDL(nfdl);
|
|
|
+ meterInfoVO.setValue2(rswdl);
|
|
|
+ return meterInfoVO;
|
|
|
+
|
|
|
+ }
|
|
|
}
|