|
@@ -49,19 +49,15 @@ public interface MarkLibraryDao extends JpaRepository<MarkLibrary, Integer>, Jpa
|
|
|
List<String> findTagSubjectCode(Integer examId);
|
|
|
|
|
|
@Modifying(clearAutomatically = true)
|
|
|
- @Query("update MarkLibrary m set m.status=?2, m.tags=null, m.markerId=null, m.markerTime=null, m.markerScore=null, m.markerScoreList=null where m.examId=?1")
|
|
|
- void resetByExamId(Integer examId, LibraryStatus status);
|
|
|
-
|
|
|
- @Modifying(clearAutomatically = true)
|
|
|
- @Query("update MarkLibrary m set m.status=?4, m.tags=null, m.markerId=null, m.markerTime=null, m.markerScore=null, m.markerScoreList=null , m.header_id=null , m.header_time=null , m.header_score=null , m.header_score_list=null where m.examId=?1 and m.subjectCode=?2 and m.groupNumber=?3")
|
|
|
+ @Query("update MarkLibrary m set m.status=?4, m.tags=null, m.markerId=null, m.markerTime=null, m.markerScore=null, m.markerScoreList=null , m.headerId=null , m.headerTime=null , m.headerScore=null , m.headerScoreList=null where m.examId=?1 and m.subjectCode=?2 and m.groupNumber=?3")
|
|
|
void resetByExamIdAndSubjectCodeAndNumber(Integer examId, String subjectCode, Integer number, LibraryStatus status);
|
|
|
|
|
|
@Modifying(clearAutomatically = true)
|
|
|
- @Query("update MarkLibrary m set m.status=?2, m.tags=null, m.markerId=null, m.markerTime=null, m.markerScore=null, m.markerScoreList=null where m.markerId=?1")
|
|
|
+ @Query("update MarkLibrary m set m.status=?2, m.tags=null, m.markerId=null, m.markerTime=null, m.markerScore=null, m.markerScoreList=null , m.headerId=null , m.headerTime=null , m.headerScore=null , m.headerScoreList=null where m.markerId=?1")
|
|
|
void resetByMarkerId(Integer markerId, LibraryStatus status);
|
|
|
|
|
|
@Modifying(clearAutomatically = true)
|
|
|
- @Query("update MarkLibrary m set m.status=?2, m.tags=null, m.markerId=null, m.markerTime=null, m.markerScore=null, m.markerScoreList=null where m.id=?1")
|
|
|
+ @Query("update MarkLibrary m set m.status=?2, m.tags=null, m.markerId=null, m.markerTime=null, m.markerScore=null, m.markerScoreList=null , m.headerId=null , m.headerTime=null , m.headerScore=null , m.headerScoreList=null where m.id=?1")
|
|
|
void resetById(Integer id, LibraryStatus status);
|
|
|
|
|
|
@Query("select count(*) from MarkLibrary f where f.examId=?1")
|