Commit 2dcb49bd authored by 朱晨阳's avatar 朱晨阳

电站装机容量单位转换

parent 1e025584
...@@ -146,6 +146,10 @@ public class JpStationController extends BaseController { ...@@ -146,6 +146,10 @@ public class JpStationController extends BaseController {
qug3.eq(JpStation::getThirdStationId, id); qug3.eq(JpStation::getThirdStationId, id);
JpStation JpStation = jpStationMapper.selectOne(qug3); JpStation JpStation = jpStationMapper.selectOne(qug3);
// 单位转换
double capacity = (JpStation.getCapacity() == null ? 0: JpStation.getCapacity())/1000;
JpStation.setCapacity(capacity);
JpStationDto jpStationDto = jpStationServiceImpl.queryBySeq(JpStation.getSequenceNbr()); JpStationDto jpStationDto = jpStationServiceImpl.queryBySeq(JpStation.getSequenceNbr());
LambdaQueryWrapper<JpInverter> qug = new LambdaQueryWrapper<>(); LambdaQueryWrapper<JpInverter> qug = new LambdaQueryWrapper<>();
qug.eq(JpInverter::getThirdStationId, jpStationDto.getThirdStationId()); qug.eq(JpInverter::getThirdStationId, jpStationDto.getThirdStationId());
......
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