|
@@ -228,7 +228,8 @@ public interface MarkTaskRepo extends JpaRepository<MarkTask, Long>, JpaSpecific
|
|
|
@Query(value = "SELECT count(1) from mark_task m where m.question_id = ?1 and m.marker_id = ?2 and m.stage = ?3 and m.batch_no is not null and m.is_rejected = true", nativeQuery = true)
|
|
|
int countByQuestionIdAndMarkerIdAndStageAndIsRejectedTrue(Long questionId, Long markerId, int ordinal);
|
|
|
|
|
|
- List<MarkTask> findByWorkIdAndSubjectAndMarkerIdAndStage(Long workId, Subject subject, Long valueOf, MarkStage stage);
|
|
|
+ @Query(value = "select * from mark_task where work_id = ?1 and subject = ?2 and marker_id = ?3 and stage = ?4 limit 1", nativeQuery = true)
|
|
|
+ List<MarkTask> findByWorkIdAndSubjectAndMarkerIdAndStage(Long workId, String subject, Long valueOf, int stage);
|
|
|
|
|
|
int countByWorkIdAndStageAndResultNotNull(Long id, MarkStage level);
|
|
|
|