|
@@ -6,16 +6,16 @@ import java.util.List;
|
|
|
import java.util.Set;
|
|
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
+import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
-import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
|
|
|
import cn.com.qmth.stmms.biz.exam.model.ExamStudent;
|
|
|
import cn.com.qmth.stmms.common.enums.SubjectiveStatus;
|
|
|
|
|
|
public interface ExamStudentDao
|
|
|
- extends PagingAndSortingRepository<ExamStudent, Integer>, JpaSpecificationExecutor<ExamStudent> {
|
|
|
+ extends JpaRepository<ExamStudent, Integer>,JpaSpecificationExecutor<ExamStudent> {
|
|
|
|
|
|
public List<ExamStudent> findByExamId(int examId, Pageable pageable);
|
|
|
|
|
@@ -304,6 +304,10 @@ public interface ExamStudentDao
|
|
|
@Modifying
|
|
|
@Query("update ExamStudent s set s.inspectCount=?2 where s.id=?1 ")
|
|
|
public void updateInspectCount(Integer studentId, Integer inspectCount);
|
|
|
+
|
|
|
+ @Modifying
|
|
|
+ @Query("update ExamStudent s set s.subjectCode=?2,s.subjectName=?3 where s.id=?1 ")
|
|
|
+ public void updateSubject(Integer studentId, String subjectCode,String subjectName);
|
|
|
|
|
|
@Query("select s from ExamStudent s where s.schoolId=?1 and s.examId=?2 and s.subjectCode=?3 and s.studentCode=?4 ")
|
|
|
public ExamStudent findBySchoolIdAndExamIdAndSubjectCodeAndStudentCode( Integer schoolId,Integer examId,
|