Commit efc9d637 authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.修改极短期间开预测定时任务逻辑,解决优化后部分优化结果时间段过短问题;
2.修改心知天气气象数据获取及接收定时任务,解决天气数据通过邮件下载后,部分数据精度丢失问题;
3.修改首页各个接口逻辑,对小数类型字段进行处理,修改首页接口,增加小时保留两位四舍五入逻辑,同时解决线路详情接口部分查询逻辑报错问题;
4.能耗分析模块,能耗概览接口修改,修改查询逻辑,修改数据获取逻辑及绿电占比计算逻辑;
5.能耗分析模块,消纳曲线用电趋势接口修改,修改查询逻辑,修改数据获取逻辑及绿电占比计算逻辑;
6.能耗分析模块,用电详情接口修改,修改查询逻辑,修改数据获取逻辑及绿电占比计算逻辑;
7.修改首页先导实验井间开制度模块接口查询逻辑,解决极短期间开优化修改后没有第一次开井时间标识导致数据查询不出来问题;
8.基础间开制度新增修改接口逻辑修改,删除防冻堵对井口处理逻辑;
9.极短期间开优化算法修改,增加防冻堵井开井时间优化逻辑;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 8532eb1e
......@@ -3,7 +3,6 @@ package pps.core.space.service;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.text.CharSequenceUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.github.pagehelper.PageInfo;
......@@ -667,30 +666,30 @@ public class SpaceInstitutionDetailService extends SpaceOptimizeBaseService {
List<SpaceInstitutionWellheadView> wellheadViewList = new ArrayList<>(32);
List<SpaceInstitutionDurationView> durationList;
List<SpaceInstitutionWellheadView> list = (List<SpaceInstitutionWellheadView>) XCopyUtils.copyNewList(wellheadList, SpaceInstitutionWellheadView.class);
//执行防冻土策略
boolean isTundraStrategy = Objects.nonNull(tundraStrategy) && tundraStrategy.equals(0);
String wellId = null;
if (isTundraStrategy) {
wellId = ServiceUtil.getMinPowerWellByIds(context, list.stream()
.map(SpaceInstitutionWellheadView::getWellheadId)
.collect(Collectors.toList()));
}
// //执行防冻土策略
// boolean isTundraStrategy = Objects.nonNull(tundraStrategy) && tundraStrategy.equals(0);
// String wellId = null;
// if (isTundraStrategy) {
// wellId = ServiceUtil.getMinPowerWellByIds(context, list.stream()
// .map(SpaceInstitutionWellheadView::getWellheadId)
// .collect(Collectors.toList()));
// }
//封装数据
for (SpaceInstitutionWellheadView wellhead : list) {
wellhead.setInstitutionId(institutionId);
BaseUtils.setBaseModelDefault(wellhead, session);
wellhead.setId(BaseUtils.getUUID());
//防冻土
if (isTundraStrategy && CharSequenceUtil.equals(wellhead.getWellheadId(), wellId)) {
wellhead.setRunTypeKey(BusinessConstant.CONTINUOUS_PUMPING_WELL);
wellhead.setStartSeq(0);
wellhead.setIntervalDescribe("24h常开");
wellhead.setIntervalTypeKey(null);
wellhead.setOpenWellDay(null);
wellhead.setCloseWellDay(null);
wellhead.setRunDuration(null);
wellhead.setDurationList(null);
}
// //防冻土
// if (isTundraStrategy && CharSequenceUtil.equals(wellhead.getWellheadId(), wellId)) {
// wellhead.setRunTypeKey(BusinessConstant.CONTINUOUS_PUMPING_WELL);
// wellhead.setStartSeq(0);
// wellhead.setIntervalDescribe("24h常开");
// wellhead.setIntervalTypeKey(null);
// wellhead.setOpenWellDay(null);
// wellhead.setCloseWellDay(null);
// wellhead.setRunDuration(null);
// wellhead.setDurationList(null);
// }
wellheadViewList.add(wellhead);
durationList = wellhead.getDurationList();
if (CollUtil.isNotEmpty(durationList)) {
......
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