1.算法占比调整,修改监测点稳态合格率算法,原因int/int小数点会省略
2.页面显示占比调整
This commit is contained in:
@@ -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();;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user