|
@ -1,7 +1,6 @@ |
|
|
package com.storeroom.modules.archives.repository; |
|
|
package com.storeroom.modules.archives.repository; |
|
|
|
|
|
|
|
|
import com.storeroom.modules.archives.domain.ArchivesCase; |
|
|
import com.storeroom.modules.archives.domain.ArchivesCase; |
|
|
import com.storeroom.modules.device.domain.DeviceInfo; |
|
|
|
|
|
import org.springframework.data.domain.Page; |
|
|
import org.springframework.data.domain.Page; |
|
|
import org.springframework.data.domain.Pageable; |
|
|
import org.springframework.data.domain.Pageable; |
|
|
import org.springframework.data.jpa.repository.JpaRepository; |
|
|
import org.springframework.data.jpa.repository.JpaRepository; |
|
@ -15,7 +14,7 @@ import java.util.Set; |
|
|
|
|
|
|
|
|
public interface ArchivesCaseRepository extends JpaRepository<ArchivesCase, String>{ |
|
|
public interface ArchivesCaseRepository extends JpaRepository<ArchivesCase, String>{ |
|
|
|
|
|
|
|
|
@Query("from ArchivesCases where id = ?1") |
|
|
|
|
|
|
|
|
@Query("from ArchivesCase where id = ?1") |
|
|
ArchivesCase findCaseById(String caseId); |
|
|
ArchivesCase findCaseById(String caseId); |
|
|
|
|
|
|
|
|
@Query(nativeQuery = true, |
|
|
@Query(nativeQuery = true, |
|
@ -60,7 +59,7 @@ public interface ArchivesCaseRepository extends JpaRepository<ArchivesCase, Stri |
|
|
|
|
|
|
|
|
Integer countAllByTid(String tid); |
|
|
Integer countAllByTid(String tid); |
|
|
|
|
|
|
|
|
@Query("select caseName from ArchivesCases where id in ?1") |
|
|
|
|
|
|
|
|
@Query("select caseName from ArchivesCase where id in ?1") |
|
|
List<String> findCaseName(List caseIds); |
|
|
List<String> findCaseName(List caseIds); |
|
|
|
|
|
|
|
|
@Query(nativeQuery = true, |
|
|
@Query(nativeQuery = true, |
|
@ -69,11 +68,11 @@ public interface ArchivesCaseRepository extends JpaRepository<ArchivesCase, Stri |
|
|
Integer isHaveArchives(List<String> deviceId); |
|
|
Integer isHaveArchives(List<String> deviceId); |
|
|
|
|
|
|
|
|
@Modifying |
|
|
@Modifying |
|
|
@Query(value = "update ArchivesCases set tid = null where tid = ?1") |
|
|
|
|
|
|
|
|
@Query(value = "update ArchivesCase set tid = null where tid = ?1") |
|
|
void unbindTag(String tid); |
|
|
void unbindTag(String tid); |
|
|
|
|
|
|
|
|
@Modifying |
|
|
@Modifying |
|
|
@Query(value = "update ArchivesCases set tid = ?1 where id = ?2 ") |
|
|
|
|
|
|
|
|
@Query(value = "update ArchivesCase set tid = ?1 where id = ?2 ") |
|
|
Integer bindTag(String tid,String archivesId); |
|
|
Integer bindTag(String tid,String archivesId); |
|
|
|
|
|
|
|
|
@Modifying |
|
|
@Modifying |
|
|