|
@@ -506,7 +506,7 @@ public class EmailImpl extends ServiceImpl<EmailMapper, Email> implements EmailS
|
|
|
log.error("该测风塔没有配置密码");
|
|
|
} else {
|
|
|
String password = w.getPassword();
|
|
|
- String cmd = "\"D:\\NRG\\SymDR\\SDR.exe\"" + " /z " + password + " " + f.getPath();
|
|
|
+ String cmd = "\"C:\\NRG\\SymDR\\SDR.exe\"" + " /z " + password + " " + f.getPath();
|
|
|
Process ipconfig = runtime.exec(cmd);
|
|
|
ipconfig.waitFor();
|
|
|
InputStream inputStream = ipconfig.getInputStream();
|
|
@@ -539,7 +539,7 @@ public class EmailImpl extends ServiceImpl<EmailMapper, Email> implements EmailS
|
|
|
String[] id = f.getName().split("_");
|
|
|
//根据编号过滤
|
|
|
List<WindTowerInfo> windTowerInfoList = windTowerInfoService.getByEquipmentNo(id[0]);
|
|
|
- windTowerInfoType(id[0],windTowerInfoList);
|
|
|
+ windTowerInfoType(id[0], windTowerInfoList);
|
|
|
//如果有 有可能会有编号相同 但是记录仪编号不同的情况 不解析看不到记录仪编号 所以只能用相同编号的测风塔密码解析
|
|
|
//如果是从邮件里读到的塔新增的话是没有数据密码的 所以需要人为的手动配置密码
|
|
|
for (WindTowerInfo w : windTowerInfoList) {
|
|
@@ -548,7 +548,7 @@ public class EmailImpl extends ServiceImpl<EmailMapper, Email> implements EmailS
|
|
|
log.error(w.getEquipmentNo() + "测风塔没有配置数据密码");
|
|
|
} else {
|
|
|
String[] s = new String[]{
|
|
|
- "\"D:\\Program Files (x86)\\Renewable NRG Systems\\SymPRO Desktop\\SymPRODesktop.exe\"",
|
|
|
+ "\"C:\\Program Files (x86)\\Renewable NRG Systems\\SymPRO Desktop\\SymPRODesktop.exe\"",
|
|
|
"/cmd", "convert", "/file", f.getPath(),
|
|
|
"/pass", w.getPassword(), "/type", "\"meas\"", "/outputdir", "\"D:\\out\\new\""
|
|
|
};
|