|
@@ -1377,8 +1377,8 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
int days = (int) DateUtil.betweenDay(timeBegin1, timeEnd2, false);
|
|
|
//遍历天数
|
|
|
for (int i = 1; i <= days; i++) {
|
|
|
- DateTime timeNow = DateUtil.offsetDay(timeBegin1, i);
|
|
|
- DateTime timeBegin = DateUtil.offsetDay(timeBegin1, i - 1);
|
|
|
+ DateTime end = DateUtil.offsetDay(timeBegin1, i);
|
|
|
+ DateTime start = DateUtil.offsetDay(timeBegin1, i - 1);
|
|
|
|
|
|
//风速
|
|
|
List<PointInfo> entityFs = getEntity("AI066", "turbine");
|
|
@@ -1410,7 +1410,6 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
StateAi::getModel, Collectors.toMap(StateAi::getOriginalState, StateAi::getMappingState)));
|
|
|
|
|
|
// Map<String, Map<Double,Double>> fitMap = new HashMap<>();
|
|
|
- int i = 0;
|
|
|
|
|
|
//插入集合
|
|
|
List<TurbineInfoDay> interest = new ArrayList<>();
|
|
@@ -1827,6 +1826,32 @@ public class JavaFunctionJobHandler extends IJobHandler {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public void gongsizhibiao() {
|
|
|
+ //date当天零点
|
|
|
+ DateTime time = DateUtil.beginOfDay(new Date());
|
|
|
+ //date昨天零点
|
|
|
+ DateTime time0 = DateUtil.offsetDay(time, -1);
|
|
|
+ DateTime beginOfMonth = DateUtil.beginOfMonth(time0);
|
|
|
+ DateTime beginOfYear = DateUtil.beginOfYear(time0);
|
|
|
+
|
|
|
+ QueryWrapper<ProEconReportIndicatorPool> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("record_date", time0)
|
|
|
+ //包含"STA"
|
|
|
+ .like("foreign_key_id", "_STA");
|
|
|
+ List<ProEconReportIndicatorPool> list = reportIndicatorPoolService.list(wrapper);
|
|
|
+ //遍历list,累加指标RFDL
|
|
|
+
|
|
|
+ //公司指标
|
|
|
+ double rfdl = 0;
|
|
|
+ for (ProEconReportIndicatorPool pool : list) {
|
|
|
+
|
|
|
+ rfdl += pool.getRfdldb();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|