|
@@ -167,10 +167,16 @@ public class MarkQualityController extends BaseExamController {
|
|
|
List<Object[]> libraries = libraryService.findScoreCount(examId, subjectCode, groupNumber,
|
|
|
marker.getId(), LibraryStatus.MARKED, LibraryStatus.INSPECTED);
|
|
|
Map<Double, Long> scoreCount = new HashMap<Double, Long>();
|
|
|
+ Long zeroCount = 0l;
|
|
|
for (Object[] array : libraries) {
|
|
|
Double score = (Double) array[0];
|
|
|
Long count = (Long) array[1];
|
|
|
- scoreCount.put(score, count);
|
|
|
+ if (score <= 0) {
|
|
|
+ zeroCount = zeroCount + count;
|
|
|
+ scoreCount.put(0d, zeroCount);
|
|
|
+ } else {
|
|
|
+ scoreCount.put(score, count);
|
|
|
+ }
|
|
|
}
|
|
|
User user = userService.findById(marker.getUserId());
|
|
|
MarkerVO vo = new MarkerVO();
|