|
@@ -8,6 +8,7 @@ import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
|
|
|
import cn.com.qmth.stmms.biz.mark.model.MarkSpecialTag;
|
|
|
+import cn.com.qmth.stmms.common.enums.LibraryStatus;
|
|
|
|
|
|
public interface MarkSpecialTagDao
|
|
|
extends PagingAndSortingRepository<MarkSpecialTag, Integer>, JpaSpecificationExecutor<MarkSpecialTag> {
|
|
@@ -24,8 +25,8 @@ public interface MarkSpecialTagDao
|
|
|
public List<MarkSpecialTag> findByLibraryIdOrderByIdAsc(Integer libraryId);
|
|
|
|
|
|
@Modifying
|
|
|
- @Query("delete from MarkSpecialTag s where s.libraryId in (select m.id from MarkLibrary m where m.markerId=?1)")
|
|
|
- public void deleteByMarkerId(Integer markerId);
|
|
|
+ @Query("delete from MarkSpecialTag s where s.libraryId in (select m.id from MarkLibrary m where m.markerId=?1 and m.status!=?2 and m.status!=?3 ) ")
|
|
|
+ public void deleteByMarkerId(Integer markerId, LibraryStatus arbitrated, LibraryStatus waitArbitrate);
|
|
|
|
|
|
@Modifying
|
|
|
@Query("delete from MarkSpecialTag s where s.libraryId in (select m.id from MarkLibrary m where m.examId=?1 and m.subjectCode=?2 and m.groupNumber=?3)")
|