廖井涛
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
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.GalssTaskDetails;
import com.northglass.entity.GalssTaskHollow;
import com.northglass.entity.GalssTaskShelf;
import com.northglass.entity.GalssTaskShelf;
 
public interface GalssTaskHollowDao extends JpaRepository<GalssTaskHollow, Long>{
 
    
    
    @Query("select t.processcardId from GalssTaskHollow t group by t.processcardId ")
    public List<GalssTaskHollow> findDroplist();
    
 
    @Query(nativeQuery=true,value="select * from gmms_galss_task_hollow where processcard_id like CONCAT('%',?1,'%') order by stop_rank desc,processcard_id desc;")
     public List<GalssTaskHollow> findbyprocesscardid(String processcardid);
    
    @Modifying
    @Query("delete from GalssTaskHollow t where  t.processcardId like CONCAT('%',?1,'%')")
    public void deleteprocesscardid(String processcardid);
    
    
    
}