|
|
@@ -209,6 +209,7 @@ public class DevcloudScoreServiceImpl implements DevcloudScoreService {
|
|
|
FormatScore formatScoreMain = getBasicScore(user_id);
|
|
|
Map<Integer,Double> totalScore = new HashMap<>();
|
|
|
List<Integer> userIds = new ArrayList<>();
|
|
|
+ DecimalFormat df = new DecimalFormat("#.00");
|
|
|
|
|
|
//bonus,根据学生的分数占比计算
|
|
|
FormatGroup formatGroup = displayService.getGroupAnalysisById(user_id);
|
|
|
@@ -286,7 +287,7 @@ public class DevcloudScoreServiceImpl implements DevcloudScoreService {
|
|
|
if(ori[targetIndex]>100){
|
|
|
formatScoreMain.setTotalScore(100.0);
|
|
|
}else {
|
|
|
- formatScoreMain.setTotalScore(ori[targetIndex]);
|
|
|
+ formatScoreMain.setTotalScore(Double.valueOf(df.format(ori[targetIndex])));
|
|
|
}
|
|
|
formatScoreMain.setBonus(bonusScore.get(user_id));
|
|
|
|