You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virtual-patient/virtual-patient-web/src/main/java/com/supervision/pojo/vo/ChartNodeVO.java

61 lines
1.5 KiB
Java

package com.supervision.pojo.vo;
import cn.hutool.core.util.NumberUtil;
1 year ago
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
@Data
1 year ago
@ApiModel
public class ChartNodeVO {
/**
*
*/
1 year ago
@ApiModelProperty("属性占比")
private BigDecimal nodePer;
@ApiModelProperty("评分级别( (0-60) 不合格 [60,75)合格 [75,85)良好 [85,100]优秀,")
private String scoreLevel;
/**
* =
*/
1 year ago
@ApiModelProperty("总数")
private Integer total;
/**
*
*/
1 year ago
@ApiModelProperty("用户命中的数量")
private Integer correct;
/**
* ,=-
*/
1 year ago
@ApiModelProperty("不正确")
private Integer unCorrect;
/**
* ,
*/
1 year ago
@ApiModelProperty("标准,病例库中配置的数量")
private Integer standard;
public String computeScoreLevel() {
if (NumberUtil.isIn(this.getNodePer(), BigDecimal.valueOf(85), BigDecimal.valueOf(100))) {
return "优秀";
}
if (NumberUtil.isIn(this.getNodePer(), BigDecimal.valueOf(75), BigDecimal.valueOf(85))) {
return "良好";
}
if (NumberUtil.isIn(this.getNodePer(), BigDecimal.valueOf(60), BigDecimal.valueOf(75))) {
return "合格";
} else {
return "不及格";
}
}
}