微调
This commit is contained in:
@@ -124,20 +124,18 @@ public class SpecialAnalysisServiceImpl implements ISpecialAnalysisService {
|
||||
//设置波形查询的条件:事件ID
|
||||
monitorTerminalParam.setId(rmpEventDetailPO.getEventId());
|
||||
//获取RMS波形数据(由于WaveDataDTO为复杂对象所以转成byte数组在进行反序列化)
|
||||
byte[] bytes = transientFeignClient.getTransientAnalyseWaveToByteArray(monitorTerminalParam).getData();
|
||||
WaveDataDTO waveDataDTO = null;
|
||||
try {
|
||||
byte[] bytes = transientFeignClient.getTransientAnalyseWaveToByteArray(monitorTerminalParam).getData();
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
|
||||
ObjectInputStream ois = new ObjectInputStream(bis);
|
||||
//强转成WaveDataDTO
|
||||
waveDataDTO = (WaveDataDTO) ois.readObject();
|
||||
bis.close();
|
||||
ois.close();
|
||||
bytes=null;
|
||||
Arrays.fill(bytes, (byte)0);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
System.gc();
|
||||
}
|
||||
if (ObjectUtil.isNotNull(waveDataDTO)) {
|
||||
//标称电压
|
||||
|
||||
Reference in New Issue
Block a user