廖井涛
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
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.GalssTaskStock;
 
public interface GalssTaskStockDao extends JpaRepository<GalssTaskStock, Long>{
 
    
    
    @Query("select t.processcardId from GalssTaskStock t group by t.processcardId ")
    public List<GalssTaskStock> findDroplist();
    
    @Query("select t from GalssTaskStock t where t.processcardId=?1 order by t.finshTime")
    public List<GalssTaskStock> findDropframeList(String dropframe);
    
    @Query("select count(t) from GalssTaskStock t where t.processcardId=?1 order by t.finshTime")
    public int finddropframecount(String dropframe);
    
    @Query("select t from GalssTaskStock t where t.workState='已完成' and t.workProcedure='下片' order by t.finshTime")
    public List<GalssTaskStock> findallkucun4();
    
    @Query("select t from GalssTaskStock t where t.workState='已完成' and t.workProcedure='下片' and t.finshTime>=?1 and t.finshTime<=?2 order by t.finshTime")
    public List<GalssTaskStock> findallkucun(Date date1,Date date2);
    
    @Query("select t from GalssTaskStock 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<GalssTaskStock> findallkucun1(Date date1,Date date2,String processcardid,String engineeringid);
    
    @Query("select t from GalssTaskStock 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<GalssTaskStock> findallkucun2(Date date1,Date date2,String processcardid);
    
    @Query("select t from GalssTaskStock 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<GalssTaskStock> findallkucun3(Date date1,Date date2,String engineeringid);
    
    
    
}