|
@@ -95,9 +95,8 @@ public interface MarkLibraryDao extends JpaRepository<MarkLibrary, Integer>, Jpa
|
|
|
|
|
|
@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)) "
|
|
|
- + "and not exists (select m.id from MarkLibrary m where m.studentId=l.studentId and m.markerId=?2 and m.id!=l.id)")
|
|
|
- long updateMarkerResult(Integer id, Integer markerId, Double markerScore, String markerScoreList, Date markerTime,
|
|
|
+ + "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);
|
|
|
|
|
|
}
|