|
@@ -1,8 +1,5 @@
|
|
|
package cn.com.qmth.stmms.admin.exam;
|
|
|
|
|
|
-import java.util.LinkedList;
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
@@ -13,9 +10,6 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
-import cn.com.qmth.stmms.biz.campus.model.Campus;
|
|
|
-import cn.com.qmth.stmms.biz.campus.service.CampusService;
|
|
|
-import cn.com.qmth.stmms.biz.exam.service.ExamStudentService;
|
|
|
import cn.com.qmth.stmms.biz.exam.service.MarkerService;
|
|
|
import cn.com.qmth.stmms.biz.exam.service.TagService;
|
|
|
import cn.com.qmth.stmms.biz.mark.model.MarkLibrary;
|
|
@@ -30,12 +24,6 @@ public class TagController extends BaseExamController {
|
|
|
|
|
|
protected static Logger log = LoggerFactory.getLogger(TagController.class);
|
|
|
|
|
|
- @Autowired
|
|
|
- private CampusService campusService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private ExamStudentService studentService;
|
|
|
-
|
|
|
@Autowired
|
|
|
private MarkLibraryService libraryService;
|
|
|
|
|
@@ -76,22 +64,9 @@ public class TagController extends BaseExamController {
|
|
|
|
|
|
model.addAttribute("query", query);
|
|
|
model.addAttribute("subjectList", getTagSubject(examId, wu));
|
|
|
- model.addAttribute("campusList", getTagCampus(examId));
|
|
|
model.addAttribute("tagList", tagService.findAll());
|
|
|
model.addAttribute("imageServer", imageServer);
|
|
|
return "modules/exam/tagInfo";
|
|
|
}
|
|
|
|
|
|
- private List<Campus> getTagCampus(int examId) {
|
|
|
- List<Campus> list = new LinkedList<Campus>();
|
|
|
- List<Integer> ids = libraryService.findTagCampusId(examId);
|
|
|
- for (Integer id : ids) {
|
|
|
- Campus campus = campusService.findById(id);
|
|
|
- if (campus != null) {
|
|
|
- list.add(campus);
|
|
|
- }
|
|
|
- }
|
|
|
- return list;
|
|
|
- }
|
|
|
-
|
|
|
}
|