廖井涛
2025-06-11 42154214c5698326710edf336b3148830b646bb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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);
    
    
    
}