bug修改

This commit is contained in:
2026-01-28 16:38:18 +08:00
parent d8b1396b6f
commit 8439ec5bdf
4 changed files with 9 additions and 5 deletions

View File

@ -36,7 +36,7 @@ public class StationRemoteControl implements Serializable {
private String intranetIp;
@ApiModelProperty(value = "ems页面类型")
private Integer type;
private String type;
@JsonFormat(pattern = CommonConstant.DATE)
@ApiModelProperty(value = "创建时间")

View File

@ -159,9 +159,10 @@ public class OpenStationServiceImpl implements OpenStationService {
BigDecimal totalReleaseMppt = vo.getTotalRelease() == null ? BigDecimal.ZERO : vo.getTotalRelease().getValue();
BigDecimal pvDailyReleaseStart = vo.getPvDailyReleaseStart() == null ? BigDecimal.ZERO : vo.getPvDailyReleaseStart().getValue();
BigDecimal dailyReleaseElecMppt = totalReleaseMppt.subtract(pvDailyReleaseStart);
pvActivePower.add(pvActivePowerMppt);
totalRelease.add(totalReleaseMppt);
dailyReleaseElec.add(dailyReleaseElecMppt);
dailyReleaseElecMppt = dailyReleaseElecMppt.compareTo(BigDecimal.ZERO)<0?BigDecimal.ZERO:dailyReleaseElecMppt;
pvActivePower = pvActivePower.add(pvActivePowerMppt);
totalRelease = totalRelease.add(totalReleaseMppt);
dailyReleaseElec = dailyReleaseElec.add(dailyReleaseElecMppt);
}
}
}

View File

@ -822,13 +822,16 @@ public class StationHomeServiceImpl implements StationHomeService {
data.setDailyReleaseElec(pv.getDailyReleaseElec());
//计算累计发电量
BigDecimal totalReleaseElec = elecMeterValueService.selectSumValue(station.getId(),DeviceTypeConstant.ELEC_METER_VALUE_TYPE.PV_CHARGE,null);
totalReleaseElec = totalReleaseElec.add(pv.getDailyReleaseElec());
data.setTotalReleaseElec(totalReleaseElec);
//今日收益
String key = RedisKeyConstant.PV.STATION_PV_TODAY_PROFIT + station.getId();
BigDecimal todayIncone = (BigDecimal)redisService.get(key);
todayIncone = todayIncone==null?BigDecimal.ZERO:todayIncone;
data.setTodayIncone(todayIncone);
//累计收益
BigDecimal totalIncome = earningsCalculateMpptService.countAllPvIncome(station.getId(),null,null);
totalIncome = totalIncome.add(todayIncone);
data.setTotalIncome(totalIncome);
//额定功率(光伏)
data.setPvPower(station.getPvPower());

View File

@ -28,7 +28,7 @@
<if test="entity.userName != null">#{entity.userName,jdbcType=VARCHAR},</if>
<if test="entity.password != null">#{entity.password,jdbcType=VARCHAR},</if>
<if test="entity.intranetIp != null">#{entity.intranetIp,jdbcType=VARCHAR},</if>
<if test="entity.type != null">#{entity.type,jdbcType=INTEGER},</if>
<if test="entity.type != null">#{entity.type,jdbcType=VARCHAR},</if>
<if test="entity.createTime != null">#{entity.createTime,jdbcType=TIMESTAMP},</if>
<if test="entity.updateTime != null">#{entity.updateTime,jdbcType=TIMESTAMP},</if>
</trim>