Commit ebe12260 authored by ZWT's avatar ZWT

feat[零碳项目]: 松原演示

[
1.修改日耗电日产液信息定时任务及井口生产情况表表结构,增加来源系统字段,同时修改代码批量插入逻辑;
2.修改日用电趋势计算定时任务,修改代码逻辑,增加区分来源系统逻辑;
3.修改能耗分析定时任务定时任务,修改代码逻辑,增加区分来源系统逻辑;
4.修改第三方有功功率定时任务,修改代码逻辑,增加区分来源系统逻辑;
5.修改第三方当日油井状态定时任务,修改代码逻辑,增加区分来源系统逻辑;
6.修改第三方井场日累计数据定时任务,修改代码逻辑,增加区分来源系统逻辑;
7.修改第三方光伏日发电量定时任务,修改代码逻辑,增加区分来源系统逻辑;
8.修改第三井平均有功功率作业定时任务,修改代码逻辑,增加区分来源系统逻辑;
9.修改日耗电日产液信息定时任务,修改代码逻辑,增加区分来源系统逻辑;
10.修改查15分钟电站实际功率接口,修改代码逻辑,增加区分来源系统逻辑;
]
parent cfb008de
...@@ -201,12 +201,14 @@ public class ServiceUtil { ...@@ -201,12 +201,14 @@ public class ServiceUtil {
* @return {@link Map }<{@link Date }, {@link BigDecimal }> * @return {@link Map }<{@link Date }, {@link BigDecimal }>
*/ */
public static Map<Date, BigDecimal> getActivePowerMap15(XContext context, String stationId, Date beginTime, Date showTime) { public static Map<Date, BigDecimal> getActivePowerMap15(XContext context, String stationId, Date beginTime, Date showTime) {
String oilFieldCode = ServiceUtil.getOilFieldCode(context);
//查实际功率 //查实际功率
ThirdActivePowerViewMapper powerMapper = context.getBean(ThirdActivePowerViewMapper.class); ThirdActivePowerViewMapper powerMapper = context.getBean(ThirdActivePowerViewMapper.class);
List<ThirdActivePowerView> powerList = powerMapper.selectAvgPower15(ThirdActivePowerView.builder() List<ThirdActivePowerView> powerList = powerMapper.selectAvgPower15(ThirdActivePowerView.builder()
.stationId(stationId) .stationId(stationId)
.startTime(beginTime) .startTime(beginTime)
.endTime(showTime) .endTime(showTime)
.systemSource(oilFieldCode)
.build()); .build());
Map<Date, BigDecimal> powerMap; Map<Date, BigDecimal> powerMap;
if (CollUtil.isNotEmpty(powerList)) { if (CollUtil.isNotEmpty(powerList)) {
......
...@@ -161,6 +161,9 @@ ...@@ -161,6 +161,9 @@
<if test="endTime != null"> <if test="endTime != null">
AND input_time &lt;= #{endTime} AND input_time &lt;= #{endTime}
</if> </if>
<if test="systemSource != null">
AND system_source = #{systemSource}
</if>
ORDER BY ORDER BY
input_time ASC input_time ASC
) z ) z
......
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