|
@@ -4,10 +4,13 @@ import com.keao.edu.common.dal.BaseDAO;
|
|
import com.keao.edu.common.service.impl.BaseServiceImpl;
|
|
import com.keao.edu.common.service.impl.BaseServiceImpl;
|
|
import com.keao.edu.user.dao.ExamSubjectDao;
|
|
import com.keao.edu.user.dao.ExamSubjectDao;
|
|
import com.keao.edu.user.entity.ExamSubject;
|
|
import com.keao.edu.user.entity.ExamSubject;
|
|
|
|
+import com.keao.edu.user.entity.Subject;
|
|
import com.keao.edu.user.service.ExamSubjectService;
|
|
import com.keao.edu.user.service.ExamSubjectService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@Service
|
|
@Service
|
|
public class ExamSubjectServiceImpl extends BaseServiceImpl<Long, ExamSubject> implements ExamSubjectService {
|
|
public class ExamSubjectServiceImpl extends BaseServiceImpl<Long, ExamSubject> implements ExamSubjectService {
|
|
|
|
|
|
@@ -18,5 +21,9 @@ public class ExamSubjectServiceImpl extends BaseServiceImpl<Long, ExamSubject> i
|
|
public BaseDAO<Long, ExamSubject> getDAO() {
|
|
public BaseDAO<Long, ExamSubject> getDAO() {
|
|
return examSubjectDao;
|
|
return examSubjectDao;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<Subject> getExamSubjects(Integer ExamId) {
|
|
|
|
+ return examSubjectDao.getSubjectWithExamId(ExamId);
|
|
|
|
+ }
|
|
}
|
|
}
|