Commit 6fbff4b9 authored by tangwei's avatar tangwei

修改累计发电量单位

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