|
@@ -91,18 +91,18 @@ public class ReportSubjectGroupDTO {
|
|
|
private Integer fullCount;
|
|
|
|
|
|
public ReportSubjectGroupDTO(ReportSubjectGroup r) {
|
|
|
- DecimalFormat format = new DecimalFormat("####.##");
|
|
|
+ DecimalFormat format = new DecimalFormat("0.00");
|
|
|
this.subjectCode = r.getSubjectCode();
|
|
|
this.subjectName = r.getSubjectName();
|
|
|
this.groupName = r.getGroupName();
|
|
|
this.groupNumber = r.getGroupNumber();
|
|
|
- this.maxScore = format.format(new BigDecimal(r.getMaxScore()).setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
- this.minScore = format.format(new BigDecimal(r.getMinScore()).setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
- this.avgScore = format.format(new BigDecimal(r.getAvgScore()).setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
- this.totalScore = format.format(new BigDecimal(r.getTotalScore()).setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
- this.scoreRate = format.format(new BigDecimal(r.getScoreRate()).setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
- this.stdev = format.format(new BigDecimal(r.getStdev()).setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
- this.coefficient = format.format(new BigDecimal(r.getCoefficient()).setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
+ this.maxScore = format.format(new BigDecimal(r.getMaxScore()).setScale(2, RoundingMode.HALF_UP).doubleValue()).toString();
|
|
|
+ this.minScore = format.format(new BigDecimal(r.getMinScore()).setScale(2, RoundingMode.HALF_UP).doubleValue()).toString();
|
|
|
+ this.avgScore = format.format(new BigDecimal(r.getAvgScore()).setScale(2, RoundingMode.HALF_UP).doubleValue()).toString();
|
|
|
+ this.totalScore = format.format(new BigDecimal(r.getTotalScore()).setScale(2, RoundingMode.HALF_UP).doubleValue()).toString();
|
|
|
+ this.scoreRate = format.format(new BigDecimal(r.getScoreRate()).setScale(2, RoundingMode.HALF_UP).doubleValue()).toString();
|
|
|
+ this.stdev = format.format(new BigDecimal(r.getStdev()).setScale(2, RoundingMode.HALF_UP).doubleValue()).toString();
|
|
|
+ this.coefficient = format.format(new BigDecimal(r.getCoefficient()).setScale(2, RoundingMode.HALF_UP).doubleValue()).toString();
|
|
|
this.zeroCount = r.getZeroCount();
|
|
|
this.fullCount = r.getFullCount();
|
|
|
}
|