解决暂态下发幅值问题

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

@@ -60,10 +60,6 @@ public class PqErrSysDtls implements Serializable {
*/
private Integer endFlag;
/**
* 单位
*/
// private String unit;
/**
* 判断条件值类型(包括值类型,绝对值、相对值)
@@ -77,7 +73,7 @@ public class PqErrSysDtls implements Serializable {
private Double maxErrorValue;
/**
* 误差值类型
* 误差值类型(绝对值:0:标称值 1:标准值 2:值比较 相对值:0标称值 1:标准值)
*/
private Integer errorValueType;

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