|
@@ -63,10 +63,10 @@ public class InspectedController extends BaseExamController {
|
|
|
|
|
|
@Autowired
|
|
|
private ExamQuestionService questionService;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private MarkTrackService markTrackService;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private MarkSpecialTagService markSpecialTagService;
|
|
|
|
|
@@ -128,13 +128,13 @@ public class InspectedController extends BaseExamController {
|
|
|
for (int i = 0; i < questions.size(); i++) {
|
|
|
ExamQuestion question = questions.get(i);
|
|
|
JSONObject obj = new JSONObject();
|
|
|
- obj.accumulate("questionNumber", question.getMainTitle()+" "+question.getQuestionNumber());
|
|
|
+ obj.accumulate("questionNumber", question.getMainTitle() + " " + question.getQuestionNumber());
|
|
|
obj.accumulate("score", scores.get(i).getScore());
|
|
|
array.add(obj);
|
|
|
}
|
|
|
result.accumulate("questions", array);
|
|
|
-
|
|
|
- MarkGroup group = groupService.findOne(student.getExamId(), student.getSubjectCode(),library.getGroupNumber());
|
|
|
+
|
|
|
+ MarkGroup group = groupService.findOne(student.getExamId(), student.getSubjectCode(), library.getGroupNumber());
|
|
|
Campus campus = campusService.findBySchoolAndName(student.getSchoolId(), student.getCampusName());
|
|
|
List<String> picUrls = PictureUrlBuilder.getSliceUrls(student.getExamId(), campus.getId(),
|
|
|
student.getSubjectCode(), student.getExamNumber(), student.getSliceCount());
|
|
@@ -151,7 +151,7 @@ public class InspectedController extends BaseExamController {
|
|
|
@ResponseBody
|
|
|
public Object save(HttpServletRequest request, @RequestParam Integer libraryId) {
|
|
|
MarkLibrary library = libraryService.findById(libraryId);
|
|
|
- if (library != null) {
|
|
|
+ if (library != null && library.getStatus().equals(LibraryStatus.MARKED)) {
|
|
|
library.setStatus(LibraryStatus.INSPECTED);
|
|
|
libraryService.save(library);
|
|
|
return true;
|