海南波形文件读取路径修改

This commit is contained in:
hanyong
2024-12-05 15:34:00 +08:00
parent 3f56fa0de9
commit 9bee2386bf

View File

@@ -198,8 +198,8 @@ public class TransientServiceImpl implements TransientService {
String waveName = eventDetail.getWavePath(); String waveName = eventDetail.getWavePath();
String cfgPath, datPath; String cfgPath, datPath;
if (generalInfo.getBusinessWaveFileStorage() == GeneralConstant.LOCAL_DISK) { if (generalInfo.getBusinessWaveFileStorage() == GeneralConstant.LOCAL_DISK) {
cfgPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator + waveName + GeneralConstant.CFG; cfgPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator +"Wave" + File.separator+ waveName + GeneralConstant.CFG;
datPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator + waveName + GeneralConstant.DAT; datPath = generalInfo.getBusinessWavePath() + File.separator + ip + File.separator +"Wave" + File.separator + waveName + GeneralConstant.DAT;
log.info("本地磁盘波形文件路径----"+cfgPath); log.info("本地磁盘波形文件路径----"+cfgPath);
InputStream cfgStream = waveFileComponent.getFileInputStreamByFilePath(cfgPath); InputStream cfgStream = waveFileComponent.getFileInputStreamByFilePath(cfgPath);
InputStream datStream = waveFileComponent.getFileInputStreamByFilePath(datPath); InputStream datStream = waveFileComponent.getFileInputStreamByFilePath(datPath);