廖井涛
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
60
61
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.GalssTaskStock;
 
public interface GalssTaskDetailsDao extends JpaRepository<GalssTaskDetails, Long>{
 
    @Query("select t from GalssTaskDetails t ")
    public List<GalssTaskDetails> findGalssTaskDetails();
    
    @Query("select t from GalssTaskDetails t where t.finshTime='completetime'")
    public List<GalssTaskDetails> findtime(String completetime);
    
    
    
 
    @Query("select t.processcardId from GalssTaskDetails t group by t.processcardId ")
    public List<GalssTaskDetails> findDroplist();
    
    @Query("select t from GalssTaskDetails t where t.processcardId=?1 order by t.finshTime")
    public List<GalssTaskDetails> findDropframeList(String dropframe);
    
    @Query("select count(t) from GalssTaskDetails t where t.processcardId=?1 order by t.finshTime")
    public int finddropframecount(String dropframe);
    
    /*@Query("select t from GalssTaskDetails t where t.workState='已完成' and t.workProcedure='下片' order by t.finshTime")
    public List<GalssTaskDetails> findallkucun4();
    
    @Query("select t from GalssTaskDetails t where t.workState='已完成' and t.workProcedure='下片' and t.finshTime>=?1 and t.finshTime<=?2 order by t.finshTime")
    public List<GalssTaskDetails> findallkucun(Date date1,Date date2);
    
    @Query("select t from GalssTaskDetails 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<GalssTaskDetails> findallkucun1(Date date1,Date date2,String processcardid,String engineeringid);
    
    @Query("select t from GalssTaskDetails 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<GalssTaskDetails> findallkucun2(Date date1,Date date2,String processcardid);
    
    @Query("select t from GalssTaskDetails t where t.workState='已完成' and t.workProcedure='下片' and t.finshTime>=?1 and t.finshTime<=?2  order by t.finshTime")
    public List<GalssTaskDetails> findallkucun3(Date date1,Date date2,String engineeringid);*/
    
    @Query(nativeQuery=true,value="select * from gmms_galss_task_details where work_state='已完成' and work_procedure='下片' order by finsh_time limit 0,50")
    public List<GalssTaskDetails> findallkucun4();
    
    @Query(nativeQuery=true,value="select * from gmms_galss_task_details where work_state='已完成' and work_procedure='下片' and finsh_time>=?1 and finsh_time<=?2 order by finsh_time limit 0,50")
    public List<GalssTaskDetails> findallkucun(Date date1,Date date2);
    
    @Query(nativeQuery=true,value="select * from gmms_galss_task_details  gt join gmms_raw_file rf on gt.engineering_id=rf.file_name where work_state='已完成' and work_procedure='下片' and processcard_id=?4 and operator=?3 and finsh_time>?1 and finsh_time<?2 order by finsh_time ")
    public List<GalssTaskDetails> findallkucun1(Date date1,Date date2,String processcardid,String engineeringid);
    
    @Query(nativeQuery=true,value="select * from gmms_galss_task_details  gt join gmms_raw_file rf on gt.engineering_id=rf.file_name where work_state='已完成' and work_procedure='下片'  and operator=?3 and finsh_time>?1 and finsh_time<?2 order by finsh_time")
     public List<GalssTaskDetails> findallkucun2(Date date1,Date date2,String processcardid);
    
    @Query(nativeQuery=true,value="select * from gmms_galss_task_details  gt join gmms_raw_file rf on gt.engineering_id=rf.file_name where work_state='已完成' and work_procedure='下片' and processcard_id=?3  and finsh_time>?1 and finsh_time<?2 order by finsh_time ")
    public List<GalssTaskDetails> findallkucun3(Date date1,Date date2,String engineeringid);
}