解决暂态下发幅值问题
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user