|
@@ -94,9 +94,9 @@ public interface MarkLibraryDao extends JpaRepository<MarkLibrary, Integer>, Jpa
|
|
void updateByStudentIdAndGroupNumber(Integer studentId, Integer groupNumber, LibraryStatus status);
|
|
void updateByStudentIdAndGroupNumber(Integer studentId, Integer groupNumber, LibraryStatus status);
|
|
|
|
|
|
@Modifying(clearAutomatically = true)
|
|
@Modifying(clearAutomatically = true)
|
|
- @Query("update MarkLibrary l set l.markerId=?2, l.markerScore=?3, l.markerScoreList=?4, l.markerTime=?5, l.tags=?6, l.status=?7 "
|
|
|
|
- + "where l.id=?1 and (l.status=?8 or (l.status=?7 and l.markerId=?2))")
|
|
|
|
- int updateMarkerResult(Integer id, Integer markerId, Double markerScore, String markerScoreList, Date markerTime,
|
|
|
|
- String tags, LibraryStatus markedStatus, LibraryStatus waitStatus);
|
|
|
|
|
|
+ @Query("update MarkLibrary l set l.status=?2, l.markerId=?3, l.markerScore=?4, l.markerScoreList=?5, l.markerTime=?6, l.tags=?7 "
|
|
|
|
+ + "where l.id=?1 and l.status in (?8) and (l.markerId=null or l.markerId=?3)")
|
|
|
|
+ int updateMarkerResult(Integer id, LibraryStatus newStatus, Integer markerId, Double markerScore,
|
|
|
|
+ String markerScoreList, Date markerTime, String tags, LibraryStatus... previousStatus);
|
|
|
|
|
|
}
|
|
}
|