|
@@ -143,10 +143,10 @@ public interface MarkLibraryDao extends JpaRepository<MarkLibrary, Integer>, Jpa
|
|
MarkLibrary findByStudentIdAndGroupNumberAndTaskNumber(Integer studentId, Integer groupNumber, Integer taskNumber);
|
|
MarkLibrary findByStudentIdAndGroupNumberAndTaskNumber(Integer studentId, Integer groupNumber, Integer taskNumber);
|
|
|
|
|
|
@Modifying(clearAutomatically = true)
|
|
@Modifying(clearAutomatically = true)
|
|
- @Query("update MarkLibrary l set l.status=?2, l.markerId=?3, l.markerTime=?4,l.markerScore=0, "
|
|
|
|
- + "l.markerSpent=?5 where l.id=?1 and l.status in (?6) and (l.markerId=null or l.markerId=?3)")
|
|
|
|
|
|
+ @Query("update MarkLibrary l set l.status=?2, l.markerId=?3, l.markerTime=?4,l.markerScore=?6,l.markerScoreList=?7, "
|
|
|
|
+ + "l.markerSpent=?5 where l.id=?1 and l.status in (?8) and (l.markerId=null or l.markerId=?3)")
|
|
int updateProblemResult(Integer id, LibraryStatus newStatus, Integer markerId, Date markerTime, Integer spent,
|
|
int updateProblemResult(Integer id, LibraryStatus newStatus, Integer markerId, Date markerTime, Integer spent,
|
|
- LibraryStatus... previousStatus);
|
|
|
|
|
|
+ Double markerScore, String markerScoreList, LibraryStatus... previousStatus);
|
|
|
|
|
|
@Query("select distinct m.subjectCode from MarkLibrary m where m.examId=?1 and m.status not in (?2) ")
|
|
@Query("select distinct m.subjectCode from MarkLibrary m where m.examId=?1 and m.status not in (?2) ")
|
|
Set<String> findSubjectUnFinishByExamId(int examId, LibraryStatus... status);
|
|
Set<String> findSubjectUnFinishByExamId(int examId, LibraryStatus... status);
|