1.算法占比调整,修改监测点稳态合格率算法,原因int/int小数点会省略

2.页面显示占比调整
This commit is contained in:
wr
2024-02-28 19:59:30 +08:00
parent a44b8f2348
commit 58d635f1a5
5 changed files with 44 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
package com.njcn.device.pms.pojo.vo;
import cn.hutool.core.util.NumberUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -85,4 +86,16 @@ public class ROperatingIndexCommonVO {
*/
@ApiModelProperty(name = " isUnusual", value = "数据是否异常(0:正常 1:异常)")
private Integer isUnusual;
public void setDataIntegrityRate(Double dataIntegrityRate) {
this.dataIntegrityRate = NumberUtil.round(dataIntegrityRate*100,2).doubleValue();
}
public void setDataRightRate(Double dataRightRate) {
this.dataRightRate = NumberUtil.round(dataRightRate*100,2).doubleValue();;
}
public void setIndexIntegrityRate(Double indexIntegrityRate) {
this.indexIntegrityRate = NumberUtil.round(indexIntegrityRate*100,2).doubleValue();;
}
}

View File

@@ -1,5 +1,6 @@
package com.njcn.device.pms.pojo.vo;
import cn.hutool.core.util.NumberUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -66,6 +67,14 @@ public class ROperatingIndexVO implements Serializable {
*/
@ApiModelProperty(name = " isUnusual", value = "数据是否异常(0:正常 1:异常)")
private Integer isUnusual;
public void setDataIntegrityRate(Double dataIntegrityRate) {
this.dataIntegrityRate = NumberUtil.round(dataIntegrityRate*100,2).doubleValue();;
}
public void setIndexIntegrityRate(Double indexIntegrityRate) {
this.indexIntegrityRate = NumberUtil.round(indexIntegrityRate*100,2).doubleValue();;
}
}