bug修改
This commit is contained in:
@ -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 = "创建时间")
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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());
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user