金创接口优化,改webservice处理接口
parent
d8bafa63f0
commit
1ac208953f
@ -1,15 +1,25 @@
|
||||
package com.ann.demo.primaryRepository;
|
||||
|
||||
import com.ann.demo.primaryEntity.ScanningFile;
|
||||
import org.apache.xml.res.XMLErrorResources_tr;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.awt.print.Pageable;
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface ScanningFileRepository extends JpaRepository<ScanningFile,Integer> {
|
||||
// and FBIHID = '370067' and FBINCU = '4'
|
||||
@Query(nativeQuery= true,value = "select top 70 * from scanning_file where STATUS = 0 order by id")
|
||||
public List<ScanningFile> findScanningFiles();
|
||||
/*@Query(nativeQuery= true,value = "select top 70 * from scanning_file where STATUS = 0 order by id")
|
||||
public List<ScanningFile> findScanning();*/
|
||||
//@Query(nativeQuery= true,value = ":sql")n-m+1
|
||||
/*@Query(nativeQuery= true,value = "SELECT DISTINCT c FROM Customer c JOIN c.partyCerts p where p.certNum=?")
|
||||
public List<ScanningFile> findScanningFiles(@Param("sql") String sql);*/
|
||||
@Query(nativeQuery= true,value = "select top(?1) * from scanning_file where STATUS = 0 order by id desc")
|
||||
public List<ScanningFile> findScanningFiles(int over);
|
||||
@Query(nativeQuery= true,value = "select top(?1) * from scanning_file where STATUS = 0 and id not in (select top(?2) id from scanning_file where STATUS = 0 order by id desc) order by id desc")
|
||||
public List<ScanningFile> findScanningFilesMore(int length,int start);
|
||||
}
|
||||
|
Loading…
Reference in New Issue