Commit 7d2301bf by zhangkb

修改指标评分计算针对指标分数计算有误日志打印

parent 48c86e73
...@@ -285,7 +285,13 @@ public class IndScorecardService { ...@@ -285,7 +285,13 @@ public class IndScorecardService {
}else { }else {
logger.error("id:"+indScorecardId+" 的评分卡不存在"); logger.error("id:"+indScorecardId+" 的评分卡不存在");
} }
indScoreValue = String.format("%.4f",new BigDecimal(baseScoreValue)); try {
indScoreValue = String.format("%.4f",new BigDecimal(baseScoreValue));
} catch (Exception e) {
logger.error("indId:"+indId+";date:"+date+";compareObj:"
+compareObj+" indScoreValue error:"+baseScoreValue);
indScoreValue = "0.0";
}
result.put("score",indScoreValue); result.put("score",indScoreValue);
}else { }else {
logger.error("考核指标没有关联评分卡"); logger.error("考核指标没有关联评分卡");
......
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