|
@@ -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);
|