|
@@ -128,11 +128,11 @@ public interface MarkLibraryDao extends JpaRepository<MarkLibrary, Integer>, Jpa
|
|
int updateMarkerResult(Integer id, LibraryStatus newStatus, Integer markerId, Double markerScore,
|
|
int updateMarkerResult(Integer id, LibraryStatus newStatus, Integer markerId, Double markerScore,
|
|
String markerScoreList, Date markerTime, Integer spent, String resson, LibraryStatus... previousStatus);
|
|
String markerScoreList, Date markerTime, Integer spent, String resson, LibraryStatus... previousStatus);
|
|
|
|
|
|
- @Query("select m.markerScore ,count(m) from MarkLibrary m where m.examId=?1 and m.subjectCode=?2 and m.groupNumber=?3 and m.markerId=?4 and m.status in (?5) group by m.markerScore ")
|
|
|
|
|
|
+ @Query("select m.markerScore ,count(m) from MarkLibrary m where m.examId=?1 and m.subjectCode=?2 and m.groupNumber=?3 and m.markerId=?4 and m.markerScore != -1 and m.status in (?5) group by m.markerScore ")
|
|
List<Object[]> findScoreCount(int examId, String subjectCode, Integer groupNumber, Integer markerId,
|
|
List<Object[]> findScoreCount(int examId, String subjectCode, Integer groupNumber, Integer markerId,
|
|
LibraryStatus... status);
|
|
LibraryStatus... status);
|
|
|
|
|
|
- @Query("select m.markerScore from MarkLibrary m where m.examId=?1 and m.subjectCode=?2 and m.groupNumber=?3 and m.status in (?4) group by m.markerScore ")
|
|
|
|
|
|
+ @Query("select m.markerScore from MarkLibrary m where m.examId=?1 and m.subjectCode=?2 and m.groupNumber=?3 and m.markerScore !=-1 and m.status in (?4) group by m.markerScore ")
|
|
List<Double> findScore(int examId, String subjectCode, Integer groupNumber, LibraryStatus... status);
|
|
List<Double> findScore(int examId, String subjectCode, Integer groupNumber, LibraryStatus... status);
|
|
|
|
|
|
@Modifying
|
|
@Modifying
|