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.
|
|
|
package com.supervision.pojo.vo;
|
|
|
|
|
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
|
|
@Data
|
|
|
|
@ApiModel
|
|
|
|
public class ChartNodeVO {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 属性占比
|
|
|
|
*/
|
|
|
|
@ApiModelProperty("属性占比")
|
|
|
|
private BigDecimal nodePer;
|
|
|
|
|
|
|
|
@ApiModelProperty("评分级别( (0-60) 不合格 [60,75)合格 [75,85)良好 [85,100]优秀,")
|
|
|
|
private String scoreLevel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 总数=其他三项之和
|
|
|
|
*/
|
|
|
|
@ApiModelProperty("总数")
|
|
|
|
private Integer total;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 用户命中的数量
|
|
|
|
*/
|
|
|
|
@ApiModelProperty("用户命中的数量")
|
|
|
|
private Integer correct;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 不正确,用户未命中的数量=病例库中的总数-用户命中的数量
|
|
|
|
*/
|
|
|
|
@ApiModelProperty("不正确")
|
|
|
|
private Integer unCorrect;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 标准,病例库中配置的数量
|
|
|
|
*/
|
|
|
|
@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 "不及格";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|