Commit 0c7c3991 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.修改代码扫描测试账号遗留问题,修改环境配置表增加字段,同时修改对应代码增加字段,修改获取当前配置接口逻辑,完成接口冒烟测试;
2.修改天气数据抽取定时任务,修改定时任务配置,将两小时抽取数据改完半小时抽取数据;
3.修改代码扫描硬编码问题,修改第三方环境配置表,增加字段保存第三方接口认证配置信息,修改代码添加对应字段同时修改代码逻辑,完成接口冒烟测试;
4.统计分析模块风能发电监控页面风机运行情况接口开发,完成接口冒烟测试并编写线上接口文档同时生成接口用例;
5.统计分析模块风能发电监控页面场站发电量统计接口开发,完成接口冒烟测试并编写线上接口文档同时生成接口用例;
6.统计分析模块风能发电监控页面风电站运行状态接口开发,完成接口冒烟测试并编写线上接口文档同时生成接口用例;
7.统计分析模块风能发电监控页面发电功率预测接口开发,完成接口冒烟测试并编写线上接口文档同时生成接口用例;
8.统计分析模块风能发电监控页面发电功率列表接口开发,完成接口冒烟测试并编写线上接口文档同时生成接口用例;
9.统计分析模块风能发电监控页面发电趋势列表接口开发,完成接口冒烟测试并编写线上接口文档同时生成接口用例;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 9e010e4c
...@@ -313,6 +313,37 @@ public class WindPredictionFutureService { ...@@ -313,6 +313,37 @@ public class WindPredictionFutureService {
return XListResult.success(outputs); return XListResult.success(outputs);
} }
/**
* 发电趋势列表
* 油厂平均:该月该油厂下的风机发电总和/该油厂下的风机数
*
* @param context 上下文
* @param input 输入
* @return {@link XListResult }<{@link GetWindPowerTrendOutput }>
*/
@XApiPost
@XText("发电趋势列表")
public XListResult<GetWindPowerTrendOutput> powerTrendList(XContext context, GetWindPredictionFutureInput input) {
BaseWindTurbineViewMapper mapper = context.getBean(BaseWindTurbineViewMapper.class);
BaseWindTurbineView turbineView = mapper.selectOne(input.getStationId());
if (ObjectUtil.isNull(turbineView)) {
return XListResult.success(Collections.emptyList());
}
//todo 通过电站名查实际发电量
List<GetWindPowerTrendOutput> outputs = new ArrayList<>(12);
for (int i = 1; i <= 12; i++) {
outputs.add(
GetWindPowerTrendOutput.builder()
.month(i)
.activePower(BigDecimal.ZERO)
.lastActivePower(BigDecimal.ZERO)
.avgActivePower(BigDecimal.ZERO)
.build()
);
}
return XListResult.success(outputs);
}
/*-----------------------------------private-----------------------------------*/ /*-----------------------------------private-----------------------------------*/
/** /**
......
package pps.core.base.service.data.base_wind_turbine;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xstartup.annotation.XText;
import java.math.BigDecimal;
/**
* 发电趋势
*
* @author ZWT
* @date 2024/09/03 11:31
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GetWindPowerTrendOutput {
@XText("月份")
private int month;
@XText("实际发电(kW)")
private BigDecimal activePower;
@XText("同期实际发电(kW)")
private BigDecimal lastActivePower;
@XText("油厂平均发电(kW)")
private BigDecimal avgActivePower;
}
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