廖井涛
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
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.Modifying;
import org.springframework.data.jpa.repository.Query;
 
import com.northglass.entity.GalssTask;
import com.northglass.entity.GalssTaskDetails;
import com.northglass.entity.GalssTaskHollow;
import com.northglass.entity.GalssTaskShelf;
import com.northglass.entity.GalssTaskSlicecage;
import com.northglass.entity.GalssTaskShelf;
 
public interface GalssTaskSlicecageDao extends JpaRepository<GalssTaskSlicecage, Long>{
 
    
    
    @Query("select t.processcardId from GalssTaskSlicecage t group by t.processcardId ")
    public List<GalssTaskSlicecage> findDroplist();
    
 
    @Query(nativeQuery=true,value="select * from gmms_galss_task_slicecage where processcard_id like CONCAT('%',?1,'%');")
     public List<GalssTaskSlicecage> findbyprocesscardid(String processcardid);
    
    @Modifying
    @Query("delete from GalssTaskSlicecage t where  t.processcardId like CONCAT('%',?1,'%')")
    public void deleteprocesscardid(String processcardid);
    
    @Query("select t from GalssTaskSlicecage t where t.typeId=?1 ")
    public List<GalssTaskSlicecage> findbyTypeId(Long id);
    
    @Query("select t from GalssTaskSlicecage t where t.workProcedure='理片' and (t.workState='出库中' or t.workState='进库中' or t.workState='等待中' or t.workState='已出库' )  ")
    public List<GalssTaskSlicecage> findByproceduretask();
    
    @Query("select t from GalssTaskSlicecage t where t.slicecageRank=?1 ")
    public List<GalssTaskSlicecage> findslicecagerank(Long slicecagerank);
    
    @Query("select t from GalssTaskSlicecage t where t.workProcedure='理片笼上片' and t.workState='已完成'  and (((t.width<=?3 and t.width>=?2) and (t.height<=?5 and t.height>=?4)) or ((t.width<=?5 and t.width>=?4) and (t.height<=?3 and t.height>=?2)))")
    public List<GalssTaskSlicecage> findByidentify2(Long groups,Double minwidth,Double maxwidth,Double minheigth,Double maxheigth);
    
    @Query("select t from GalssTaskSlicecage t where t.workProcedure='理片笼上片' and t.workState='已完成'")
    public List<GalssTaskSlicecage> findByidentify1();
    
}