package com.northglass.repository;
|
|
import java.sql.ResultSet;
|
import java.util.Date;
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.Query;
|
|
import com.northglass.entity.LiuChengKaReport;
|
import com.northglass.entity.RawFile;
|
|
public interface LiuChengKaReportDao extends JpaRepository<LiuChengKaReport, Long> {
|
|
// 获取流程卡报表前一百条
|
@Query(nativeQuery = true, value = "select * from v_liuchengkareportform limit 0,100")
|
public List<LiuChengKaReport> GetLiuChengKaReport2();
|
|
// 获取所有流程卡
|
@Query("select t from LiuChengKaReport t")
|
public List<LiuChengKaReport> GetLiuChengKaReportAll();
|
|
// 根据工程号获取流程卡
|
@Query("select t from LiuChengKaReport t where t.gongchenghao = ?1")
|
public List<LiuChengKaReport> GetLiuChengKaReportByGCH(String gongchenghao);
|
|
// 根据时间获取流程卡
|
@Query("select t from LiuChengKaReport t where t.startTime >= ?1 and t.startTime <= ?2 ")
|
public List<LiuChengKaReport> GetLiuChengKaReportByTime(Date sTime, Date eTime);
|
|
@Query("select t from LiuChengKaReport t where t.startTime >= ?1 and t.startTime <= ?2")
|
public List<LiuChengKaReport> GetLiuChengKaReportByStrTime(String sTime,String eTime);
|
|
@Query("select t from LiuChengKaReport t where t.startTime >= ?1 ")
|
public List<LiuChengKaReport> GetLiuChengKaReportByTime2(Date sTime);
|
|
@Query("select t from LiuChengKaReport t where t.startTime <= ?1")
|
public List<LiuChengKaReport> GetLiuChengKaReportByTime3(Date eTime);
|
|
// 根据流程卡或工程号获取流程卡报表
|
//根据工程号查询
|
@Query("select t from LiuChengKaReport t where t.gongchenghao like ?1")
|
public List<LiuChengKaReport> GetLiuChengKaReportByGCNO(String gongchenghao);
|
//根据流程卡查询
|
@Query( "select t from LiuChengKaReport t where t.liuchengkahao like ?1")
|
public List<LiuChengKaReport> GetLiuChengKaReportByLCKNO(String liuchengkahao);
|
// 并集
|
@Query("select t from LiuChengKaReport t where t.gongchenghao like ?1 and t.liuchengkahao like ?2")
|
public List<LiuChengKaReport> GetLiuChengKaReportByNO(String gongchenghao, String liuchengkahao);
|
// 交集
|
@Query("select t from LiuChengKaReport t where t.gongchenghao like ?1 or t.liuchengkahao like ?2")
|
public List<LiuChengKaReport> GetLiuChengKaReportByOrNO(String gongchenghao, String liuchengkahao);
|
|
|
|
@Query(nativeQuery = true, value = "select * from v_liuchengkareportform where t.startTime >= ?1 and t.startTime <= ?2 and gongchenghao like ?3 and liuchengkahao like ?4")
|
public List<LiuChengKaReport> GetLiuChengKaReport(Date sTime, Date eTime, String gongchenghao,
|
String liuchengkahao);
|
@Query(nativeQuery = true, value = "select * from v_liuchengkareportform where t.startTime >= ?1 and t.startTime <= ?2 and gongchenghao like ?3 or liuchengkahao like ?4")
|
public List<LiuChengKaReport> GetLiuChengKaReport1(Date sTime, Date eTime, String gongchenghao,
|
String liuchengkahao);
|
|
|
|
@Query(nativeQuery = true, value = "select * from v_liuchengkareportform where t.startTime >= ?1 and gongchenghao like ?2 and liuchengkahao like ?3")
|
public List<LiuChengKaReport> GetLiuChengKaReport2(Date sTime,String gongchenghao,String liuchengkahao);
|
|
@Query(nativeQuery = true, value = "select * from v_liuchengkareportform where t.startTime >= ?1 and gongchenghao like ?2 or liuchengkahao like ?3")
|
public List<LiuChengKaReport> GetLiuChengKaReport3(Date sTime,String gongchenghao,String liuchengkahao);
|
|
@Query(nativeQuery = true, value = "select * from v_liuchengkareportform where t.startTime <= ?1 and gongchenghao like ?2 and liuchengkahao like ?3")
|
public List<LiuChengKaReport> GetLiuChengKaReport4(Date eTime, String gongchenghao,String liuchengkahao);
|
|
@Query(nativeQuery = true, value = "select * from v_liuchengkareportform where t.startTime <= ?1 and gongchenghao like ?2 or liuchengkahao like ?3")
|
public List<LiuChengKaReport> GetLiuChengKaReport5(Date eTime, String gongchenghao,String liuchengkahao);
|
|
|
}
|