package com.northglass.repository;
|
|
import java.util.Date;
|
import java.util.List;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.Query;
|
|
import com.northglass.entity.GalssTaskDetails;
|
import com.northglass.entity.GalssTaskHollow;
|
import com.northglass.entity.GalssTaskShelf;
|
import com.northglass.entity.GalssTaskShelf;
|
|
public interface GalssTaskShelfDao extends JpaRepository<GalssTaskShelf, Long>{
|
|
@Query(nativeQuery=true,value="select * from gmms_galss_task_shelf where processcard_id like CONCAT('%',?1,'%') order by stop_rank desc,processcard_id desc;")
|
public List<GalssTaskShelf> findbyprocesscardids(String processcardid);
|
|
@Query("select t.processcardId from GalssTaskShelf t group by t.processcardId ")
|
public List<GalssTaskShelf> findDroplist();
|
|
@Query("select t from GalssTaskShelf t where t.processcardId=?1 group by t.thickness")
|
public GalssTaskShelf findprocesscardId(String processcardId);
|
|
@Query("select count(t) from GalssTaskShelf t where t.processcardId=?1")
|
public int findcount(String processcardId);
|
|
@Query("select t from GalssTaskShelf t where t.processcardId=?1 order by t.finshTime")
|
public List<GalssTaskShelf> findDropframeList(String dropframe);
|
|
@Query("select count(t) from GalssTaskShelf t where t.processcardId=?1 order by t.finshTime")
|
public int finddropframecount(String dropframe);
|
|
|
|
|
|
@Query("select t from GalssTaskShelf t where t.workState='已完成' and t.workProcedure='下片' order by t.finshTime")
|
public List<GalssTaskShelf> findallkucun4();
|
|
@Query("select t from GalssTaskShelf t where t.workState='已完成' and t.workProcedure='下片' and t.finshTime>=?1 and t.finshTime<=?2 order by t.finshTime")
|
public List<GalssTaskShelf> findallkucun(Date date1,Date date2);
|
|
@Query("select t from GalssTaskShelf t where t.workState='已完成' and t.workProcedure='下片' and t.finshTime>=?1 and t.finshTime<=?2 and t.processcardId=?3 and t.engineeringId=?4 order by t.finshTime")
|
public List<GalssTaskShelf> findallkucun1(Date date1,Date date2,String processcardid,String engineeringid);
|
|
@Query("select t from GalssTaskShelf t where t.workState='已完成' and t.workProcedure='下片' and t.finshTime>=?1 and t.finshTime<=?2 and t.processcardId=?3 order by t.finshTime")
|
public List<GalssTaskShelf> findallkucun2(Date date1,Date date2,String processcardid);
|
|
@Query("select t from GalssTaskShelf t where t.workState='已完成' and t.workProcedure='下片' and t.finshTime>=?1 and t.finshTime<=?2 and t.engineeringId=?3 order by t.finshTime")
|
public List<GalssTaskShelf> findallkucun3(Date date1,Date date2,String engineeringid);
|
|
|
@Query(nativeQuery=true,value="select count(*) from gmms_galss_task_shelf where processcard_id like CONCAT('%',?1,'%');")
|
public int findbyprocesscardid(String processcardid);
|
|
|
|
}
|