xiatian 1 vuosi sitten
vanhempi
commit
592e11bacf

+ 3 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/admin/exam/InspectedController.java

@@ -542,6 +542,9 @@ public class InspectedController extends BaseExamController {
             long totalCount = studentService.countByQuery(sQuery);
             vo.setTotalCount(totalCount);
             vo.setLeftCount(totalCount - inspectedCount);
+            if(vo.getLeftCount()<0) {
+            	vo.setLeftCount(0);
+            }
             String percent = totalCount > 0 ? (new DecimalFormat("####.###")
                     .format(inspectedCount * 100.0 / totalCount) + "%") : "100%";
             vo.setPercent(percent);