|
@@ -3,18 +3,16 @@ package com.gyee.runeconomy.service.Application;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.gyee.common.contant.ContantXk;
|
|
|
import com.gyee.common.model.StringUtils;
|
|
|
-import com.gyee.common.util.DateUtils;
|
|
|
-import com.gyee.common.util.algorithm.MathUtils;
|
|
|
+import com.gyee.runeconomy.init.CacheContext;
|
|
|
+import com.gyee.runeconomy.model.auto.ProBasicPowerstation;
|
|
|
import com.gyee.runeconomy.model.auto.ProBasicPowerstationPoint;
|
|
|
import com.gyee.runeconomy.model.auto.ProBasicProjectPlan;
|
|
|
import com.gyee.runeconomy.model.auto.ProEconPowerstationInfoDay5;
|
|
|
import com.gyee.runeconomy.service.auto.IProBasicPowerstationPointService;
|
|
|
import com.gyee.runeconomy.service.auto.IProBasicProjectPlanService;
|
|
|
import com.gyee.runeconomy.service.auto.IProEconPowerstationInfoDay5Service;
|
|
|
-import com.gyee.runeconomy.service.monitor.MonitorprojectplanService;
|
|
|
import com.gyee.runeconomy.util.MathUtil;
|
|
|
import com.gyee.runeconomy.util.realtimesource.IEdosUtil;
|
|
|
-import com.gyee.runeconomy.util.realtimesource.StringUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -117,4 +115,26 @@ public class ApplicationService {
|
|
|
|
|
|
return map;
|
|
|
}
|
|
|
+
|
|
|
+ public List electricity() throws Exception {
|
|
|
+
|
|
|
+ long longDate = System.currentTimeMillis();
|
|
|
+ Date nowDate = new Date(longDate);
|
|
|
+
|
|
|
+ List<List> list = new ArrayList<>();
|
|
|
+ List<ProBasicPowerstation> wpls = CacheContext.wpls;
|
|
|
+
|
|
|
+ for (ProBasicPowerstation wp : wpls){
|
|
|
+ List<ProEconPowerstationInfoDay5> qwt = null;
|
|
|
+ QueryWrapper<ProEconPowerstationInfoDay5> qw = new QueryWrapper<>();
|
|
|
+ qw.lambda().eq(ProEconPowerstationInfoDay5::getForeignKeyId,wp.getId());
|
|
|
+ qw.lambda().eq(ProEconPowerstationInfoDay5::getRecordDate,nowDate);
|
|
|
+ qwt = proEconPowerstationInfoDay5Service.list(qw);
|
|
|
+ list.add(qwt);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ return list;
|
|
|
+ }
|
|
|
}
|