廖井涛
2025-06-16 6067c5e5e7e568caa915f5124c71f39fbd2dc1b9
ºÓ±±ÍûÃÀÏîÄ¿/MES_11/src/main/java/com/northglass/repository/GalssTaskDao.java
@@ -31,8 +31,8 @@
   @Query("select t from GalssTask t where t.workProcedure='下片' and t.workState=?1 and t.patternTask.groups=?2")
    public List<GalssTask> findByCounttask(String state,Long groups);
   
   @Query("select t from GalssTask t where t.workProcedure='测量' and t.workState='待识别' and t.patternTask.groups=?1 order by t.patternTask.id,t.engineeringId")
    public List<GalssTask> findByidentify1(Long groups);
   @Query("select t from GalssTask t where t.workProcedure='测量' and t.workState='待识别' and t.width>?2 and t.height>?2 and t.patternTask.groups=?1 order by t.patternTask.id,t.engineeringId")
    public List<GalssTask> findByidentify1(Long groups,double minwidths);
   
   @Query("select t from GalssTask t where t.workProcedure='测量' and t.workState='待识别' and t.patternTask.groups=?1 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))) order by t.patternTask.id,t.engineeringId")
    public List<GalssTask> findByidentify2(Long groups,Double minwidth,Double maxwidth,Double minheigth,Double maxheigth);
@@ -55,8 +55,11 @@
   @Query("select t from GalssTask t where t.patternTask.id=?1")
    public List<GalssTask> findpattern(Long id);
   
   @Query("select t from GalssTask t where t.patternTask.id=?1 and t.workState='待识别' and t.workProcedure='测量'")
    public List<GalssTask> findpattern1(Long id);
   @Query("select t from GalssTask t where t.patternTask.id=?1 and t.width>?2 and t.height>?2 and t.workState='待识别' and t.workProcedure='测量'")
    public List<GalssTask> findpattern1(Long id,double minwidths);
   @Query("select t from GalssTask t where t.patternTask.groups=?1 and t.width>?2 and t.height>?2 and t.patternTask.flag=1 and t.workState='待识别' and t.workProcedure='测量'")
    public List<GalssTask> findpattern2(Long id,double minwidths);
   
   @Query("select t from GalssTask t where t.typeId=?1 ")
    public List<GalssTask> findbyTypeId1(Long id);