解决暂态下发幅值问题

This commit is contained in:
wr
2025-04-22 14:12:18 +08:00
parent 9fc0fbcbcf
commit aa5f57a856
2 changed files with 3 additions and 7 deletions

View File

@@ -1014,9 +1014,9 @@ public class PqScriptDtlsServiceImpl extends ServiceImpl<PqScriptDtlsMapper, PqS
dipDataDTO.setFTransValue(dip.getTransValue());
if (devFly) {
if (isValueType) {
dipDataDTO.setFTransValue(dip.getTransValue() * (dtls.getValue() * 0.01));
} else {
dipDataDTO.setFTransValue(dip.getTransValue());
} else {
dipDataDTO.setFTransValue(NumberUtil.round(dip.getTransValue() / dtls.getValue(), 4).doubleValue());
}
}
// 1.0/频率*持续时间(周波)= 暂态持续时间s