Commit 6fbff4b9 authored by tangwei's avatar tangwei

修改累计发电量单位

parent e19b79bc
......@@ -61,7 +61,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
YearGenerateMapper yearGenerateMapper;
private static double FDL=0.001;
private static int FD=1000;
/**
* 分页查询
*/
......@@ -455,8 +455,8 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd.setStationContact(jpStation.getStationContact());
hd.setState(jpStation.getState());
hd.setThirdStationId(jpStation.getThirdStationId());
hd.setAccumulatedPower(jpStation.getAccumulatedPower());
hd.setFullhour(Double.valueOf(String.format("%.2f", jpStation.getAccumulatedPower()*1000/jpStation.getRatedPower())));
hd.setAccumulatedPower(jpStation.getAccumulatedPower()!=null?jpStation.getAccumulatedPower()*FD:null);
hd.setFullhour(Double.valueOf(String.format("%.2f", jpStation.getAccumulatedPower()*FD/jpStation.getRatedPower())));
hd.setAccumulatedPower(jpStation.getAccumulatedPower());
hd.setCumulativeIncome(jpStation.getCumulativeIncome());
ld.add(hd);
......
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