bug修复
This commit is contained in:
parent
7aa6e4b03b
commit
d5f188b18d
@ -144,6 +144,9 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
|||||||
@Resource
|
@Resource
|
||||||
private EbikeRegionMapper ebikeRegionMapper;
|
private EbikeRegionMapper ebikeRegionMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ObjectMapper objectMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public void bind(EbikeBikeBindVo bindVo) {
|
public void bind(EbikeBikeBindVo bindVo) {
|
||||||
@ -616,7 +619,6 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
|||||||
throw new EbikeException("中控编号错误,该中控仓库中不存在");
|
throw new EbikeException("中控编号错误,该中控仓库中不存在");
|
||||||
}
|
}
|
||||||
ResGPSDto ecu = (ResGPSDto) redisUtil.getEcu(ecuSn);
|
ResGPSDto ecu = (ResGPSDto) redisUtil.getEcu(ecuSn);
|
||||||
ObjectMapper objectMapper = new ObjectMapper();
|
|
||||||
EbikeEcuMsgDto ebikeEcuMsgDto = objectMapper.convertValue(ecu, EbikeEcuMsgDto.class);
|
EbikeEcuMsgDto ebikeEcuMsgDto = objectMapper.convertValue(ecu, EbikeEcuMsgDto.class);
|
||||||
ebikeEcuMsgDto.setRealVoltage(ecu.getVoltage() / 1000.0);
|
ebikeEcuMsgDto.setRealVoltage(ecu.getVoltage() / 1000.0);
|
||||||
return ebikeEcuMsgDto;
|
return ebikeEcuMsgDto;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user