Commit 2134fe90 authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.修改极短期间开预测定时任务逻辑,解决优化后部分优化结果时间段过短问题;
2.修改心知天气气象数据获取及接收定时任务,解决天气数据通过邮件下载后,部分数据精度丢失问题;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 1f36ccac
......@@ -468,23 +468,6 @@ public class SpaceOptimizeShortPeriodService extends SpaceOptimizeBaseService {
if (i1 > 0) {
//计算出本次应该的开井时间
openTime = DateUtil.offsetMinute(lastCloseTime, maxCloseMinute);
//取当前权重的开始索引作为范围结束
// int endIndex = weightDuration.getOpenIndex();
// SpaceOptimizeWeight spaceOptimizeWeight;
// int beginIndex = 0;
// int sub = 0;
// for (int j = 0; j < endIndex; j++) {
// spaceOptimizeWeight = weightList.get(j);
// if (spaceOptimizeWeight.getTimestamp().compareTo(openTime) >= 0 && spaceOptimizeWeight.getWeight() > 0) {
// //确定开始位置
// if (0 == beginIndex) {
// beginIndex = j;
// }
// sub++;
// }
// }
// //todo :判断时间区间是否连续(暂时不用,留着,不连续的处理会很麻烦)
// boolean b = endIndex - beginIndex == sub;
//修改本次区间的开始时间及时间间隔
duration = DateUtil.between(openTime, weightDuration.getCloseTime(), DateUnit.MINUTE);
}
......
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