Commit 549b9e8a authored by tangwei's avatar tangwei

电站报表增加收益字段

parent 21c16ba6
......@@ -46,4 +46,9 @@ public class DayGenerate {
@TableField("fullhour")
private Double fullhour;
@TableField("income")
// 日收益
private Double dayIncome;
}
......@@ -47,4 +47,10 @@ public class MonthGenerate {
* */
@TableField("fullhour")
private Double fullhour;
// 月收益
@TableField("income")
private Double monthIncome;
}
......@@ -46,4 +46,9 @@ public class YearGenerate {
* */
@TableField("fullhour")
private Double fullhour;
// 年收益
@TableField("income")
private Double yearIncome;
}
......@@ -463,7 +463,6 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd.setAccumulatedPower(jpStation.getAccumulatedPower());
hd.setFullhour(Double.valueOf(String.format("%.2f", jpStation.getAccumulatedPower()/jpStation.getCapacity())));
hd.setAccumulatedPower(jpStation.getAccumulatedPower());
hd.setDayIncome(null);
ld.add(hd);
}
......@@ -486,7 +485,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd.setFullhour(dayGenerate.getFullhour());
hd.setDayGenerate(dayGenerate.getGenerate());
hd.setTimeDate(dayGenerate.getDayTime());
hd.setDayIncome(null);
hd.setDayIncome(dayGenerate.getDayIncome());
break;
}
}
......@@ -508,7 +507,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd.setState(jpStation.getState());
hd.setAccumulatedPower(jpStation.getAccumulatedPower());
hd.setMonthGenerate(dayGenerate.getGenerate());
hd.setMonthIncome(null);
hd.setMonthIncome(dayGenerate.getMonthIncome());
hd.setTimeDate(dayGenerate.getMonthTime());
hd.setFullhour(dayGenerate.getFullhour());
break;
......@@ -534,7 +533,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd.setFullhour(dayGenerate.getFullhour());
hd.setYearGenerate(dayGenerate.getGenerate());
hd.setYearIncome(null);
hd.setYearIncome(dayGenerate.getYearIncome());
hd.setTimeDate(dayGenerate.getYearTime());
break;
}
......
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