微调
This commit is contained in:
@@ -628,9 +628,9 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
|
||||
checkData.setEnable(channelListDTO.getEnable());
|
||||
//电压*电流*cos(电压角度-电流角度)
|
||||
checkData.setValue(channelI.get(0).getFAmp() * listDTO.getFAmp() / 10000 * Math.cos((listDTO.getFPhase() - channelI.get(0).getFPhase()) * Math.PI / 180));
|
||||
if (valueType) {
|
||||
checkData.setValue(checkData.getValue() * 57.74 * 5);
|
||||
}
|
||||
// if (valueType) {
|
||||
checkData.setValue(checkData.getValue() * 57.74 * 5);
|
||||
// }
|
||||
setCheck(info, checkData, channelListDTO, checkArchive, listDTO);
|
||||
}
|
||||
}
|
||||
@@ -651,9 +651,9 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
|
||||
checkData.setEnable(channelListDTO.getEnable());
|
||||
//电压*电流*cos(电压角度-电流角度)
|
||||
checkData.setValue(channelI.get(0).getFAmp() * listDTO.getFAmp() / 10000 * Math.sin((listDTO.getFPhase() - channelI.get(0).getFPhase()) * Math.PI / 180));
|
||||
if (valueType) {
|
||||
checkData.setValue(checkData.getValue() * 57.74 * 5);
|
||||
}
|
||||
// if (valueType) {
|
||||
checkData.setValue(checkData.getValue() * 57.74 * 5);
|
||||
// }
|
||||
setCheck(info, checkData, channelListDTO, checkArchive, listDTO);
|
||||
}
|
||||
}
|
||||
@@ -674,9 +674,9 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
|
||||
checkData.setEnable(channelListDTO.getEnable());
|
||||
//电压*电流*cos(电压角度-电流角度)
|
||||
checkData.setValue(channelI.get(0).getFAmp() * listDTO.getFAmp() / 10000);
|
||||
if (valueType) {
|
||||
checkData.setValue(checkData.getValue() * 57.74 * 5);
|
||||
}
|
||||
// if (valueType) {
|
||||
checkData.setValue(checkData.getValue() * 57.74 * 5);
|
||||
// }
|
||||
setCheck(info, checkData, channelListDTO, checkArchive, listDTO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user