|
@@ -317,6 +317,7 @@ public class InspectedServiceImpl extends BaseQueryService<ExamStudent> implemen
|
|
public boolean cancelByStudent(Integer studentId) {
|
|
public boolean cancelByStudent(Integer studentId) {
|
|
if (studentService.cancelInspect(studentId) > 0) {
|
|
if (studentService.cancelInspect(studentId) > 0) {
|
|
inspectHistoryService.deleteByStudentIdAndInspectRound(studentId);
|
|
inspectHistoryService.deleteByStudentIdAndInspectRound(studentId);
|
|
|
|
+ studentService.updateInspectCount(studentId, inspectHistoryService.countByStudentId(studentId));
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -324,7 +325,7 @@ public class InspectedServiceImpl extends BaseQueryService<ExamStudent> implemen
|
|
@Transactional
|
|
@Transactional
|
|
@Override
|
|
@Override
|
|
public void clearByStudent(Integer studentId) {
|
|
public void clearByStudent(Integer studentId) {
|
|
- studentService.cancelInspect(studentId);
|
|
|
|
|
|
+ studentService.clearInspect(studentId);
|
|
inspectHistoryService.deleteByStudentId(studentId);
|
|
inspectHistoryService.deleteByStudentId(studentId);
|
|
}
|
|
}
|
|
|
|
|