Commit 8225f603 authored by tangwei's avatar tangwei

修改日月明年发电量

parent 5d6a13f1
package com.yeejoin.amos.boot.module.hygf.api.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
/**
* @description:
* @author: tw
* @createDate: 2023/11/8
*/
@Data
@Accessors(chain = true)
@TableName("td_hygf_all_generate")
public class AllGenerate {
@Id
private Long createdTime;
/**
* 第三方电站id
*/
@TableField("third_station_id")
private String thirdStationId;
/**
* 年
*/
@TableField("year_time")
private String yearTime;
/**
* 平均功率
*/
@TableField("year")
private String year;
/**
* 平均功率
*/
@TableField("generate")
private Double generate;
public AllGenerate(Long createdTime, String thirdStationId, String yearTime, String year, Double generate) {
this.createdTime = createdTime;
this.thirdStationId = thirdStationId;
this.yearTime = yearTime;
this.year = year;
this.generate = generate;
}
public AllGenerate() {
}
}
...@@ -24,19 +24,30 @@ public class DayGenerate { ...@@ -24,19 +24,30 @@ public class DayGenerate {
private String thirdStationId; private String thirdStationId;
/** /**
* 小时 *
*/ */
@TableField("hour_time") @TableField("day_time")
private String hourTime; private String dayTime;
/** /**
* 月份 * 月份
*/ */
@TableField("month_day") @TableField("year_month")
private String monthDay; private String yearMonth;
/** /**
* 发电量 * 发电量
*/ */
@TableField("generate") @TableField("generate")
private Double generate; private Double generate;
public DayGenerate(Long createdTime, String thirdStationId, String dayTime, String yearMonth, Double generate) {
this.createdTime = createdTime;
this.thirdStationId = thirdStationId;
this.dayTime = dayTime;
this.yearMonth = yearMonth;
this.generate = generate;
}
public DayGenerate() {
}
} }
...@@ -24,27 +24,28 @@ public class MonthGenerate { ...@@ -24,27 +24,28 @@ public class MonthGenerate {
private String thirdStationId; private String thirdStationId;
/** /**
* *
*/ */
@TableField("day_time") @TableField("month_time")
private String dayTime; private String monthTime;
/** /**
* 月份 * 平均功率
*/ */
@TableField("year_month") @TableField("year")
private String yearMonth; private String year;
/** /**
* 发电量 * 平均功率
*/ */
@TableField("generate") @TableField("generate")
private Double generate; private Double generate;
public MonthGenerate(Long createdTime, String thirdStationId, String dayTime, String yearMonth, Double generate) { public MonthGenerate(Long createdTime, String thirdStationId, String monthTime, String year, Double generate) {
this.createdTime = createdTime; this.createdTime = createdTime;
this.thirdStationId = thirdStationId; this.thirdStationId = thirdStationId;
this.dayTime = dayTime; this.monthTime = monthTime;
this.yearMonth = yearMonth; this.year = year;
this.generate = generate; this.generate = generate;
} }
......
...@@ -26,25 +26,24 @@ public class YearGenerate { ...@@ -26,25 +26,24 @@ public class YearGenerate {
/** /**
* 年 * 年
*/ */
@TableField("month_time") @TableField("year_time")
private String monthTime; private String yearTime;
/** /**
* 平均功率 *
*/ */
@TableField("year") @TableField("year")
private String year; private String year;
/** /**
* 平均功率 *
*/ */
@TableField("generate") @TableField("generate")
private Double generate; private Double generate;
public YearGenerate(Long createdTime, String thirdStationId, String monthTime, String year, Double generate) { public YearGenerate(Long createdTime, String thirdStationId, String yearTime, String year, Double generate) {
this.createdTime = createdTime; this.createdTime = createdTime;
this.thirdStationId = thirdStationId; this.thirdStationId = thirdStationId;
this.monthTime = monthTime; this.yearTime = yearTime;
this.year = year; this.year = year;
this.generate = generate; this.generate = generate;
} }
......
...@@ -155,8 +155,7 @@ ...@@ -155,8 +155,7 @@
<select id="getJpStation" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.JpStation"> <select id="getJpStation" resultType="com.yeejoin.amos.boot.module.hygf.api.entity.JpStation">
select select
`sequence_nbr` sequenceNbr, *
third_station_id thirdStationId
from hygf_jp_station from hygf_jp_station
<where> <where>
......
...@@ -353,7 +353,7 @@ public class JpStationController extends BaseController { ...@@ -353,7 +353,7 @@ public class JpStationController extends BaseController {
public Object getPowerqx() { public Object getPowerqx() {
return jpStationMapper.getJpStation(); return jpStationMapper.getJpStation(null);
} }
} }
...@@ -24,8 +24,8 @@ public class WindSpeedScheduled { ...@@ -24,8 +24,8 @@ public class WindSpeedScheduled {
@Autowired @Autowired
TdHygfJpInvertorElecHistoryServiceImpl tdHygfJpInvertorElecHistoryServiceImpl; TdHygfJpInvertorElecHistoryServiceImpl tdHygfJpInvertorElecHistoryServiceImpl;
@Autowired // @Autowired
DayGenerateServiceImpl dayGenerateServiceImpl; // DayGenerateServiceImpl dayGenerateServiceImpl;
@Scheduled(cron = "${cheduled.crons}") @Scheduled(cron = "${cheduled.crons}")
private void initData() { private void initData() {
...@@ -38,10 +38,10 @@ public class WindSpeedScheduled { ...@@ -38,10 +38,10 @@ public class WindSpeedScheduled {
//发电量 //发电量
@Scheduled(cron = "${generate.crons}") // @Scheduled(cron = "${generate.crons}")
private void initGenerateData() { // private void initGenerateData() {
//发电量 // //发电量
dayGenerateServiceImpl.getGenerate(); // dayGenerateServiceImpl.getGenerate();
} // }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment