Commit 52ac4e17 by zhangkb

指标计分规则计算逻辑添加公式计算时最佳指标和最差指标得分为空的判断逻辑

parent bb126eeb
......@@ -198,9 +198,9 @@ public class IndScorecardService {
}
}else {//公式
int rank = currentCompareObjResult.getRank();//获取排位
if(rank==1) {//最佳指标
if(rank==1 && scoreCard.getBestIndScore()!=null) {//最佳指标
baseScoreValue = scoreCard.getBestIndScore();
}else if(rank==currentDriveResultSize) {//最差指标
}else if(rank==currentDriveResultSize && scoreCard.getWorstIndScore()!=null) {//最差指标
baseScoreValue = scoreCard.getWorstIndScore();
}else {//其他
if(StringUtils.isNotBlank(scoreCard.getOtherCalFormula())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment