|
@@ -793,7 +793,11 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
startCount=eb.getStartCount();
|
|
startCount=eb.getStartCount();
|
|
endCount=eb.getEndCount();
|
|
endCount=eb.getEndCount();
|
|
}
|
|
}
|
|
- return canExamTimes+extraNum-(usedNum+startCount-endCount);
|
|
|
|
|
|
+ Integer ret=canExamTimes+extraNum-(usedNum+startCount-endCount);
|
|
|
|
+ if(ret<0) {
|
|
|
|
+ ret=0;
|
|
|
|
+ }
|
|
|
|
+ return ret;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|