wu
2024-11-28 cfc2855d2fe063e26947bad7277a1091efbb3bbb
springboot-vue3/src/main/java/com/example/springboot/mapper/QueueMapper.java
@@ -1,6 +1,7 @@
package com.example.springboot.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.GlassInfo;
import com.example.springboot.entity.Queue;
import com.example.springboot.entity.RolePermission;
@@ -22,6 +23,9 @@
    @Select("SELECT * FROM queue where state<2 order by time desc limit 1")
    Queue selectLastQueue2();
    @Select("SELECT * FROM queue where state=1 order by time desc limit 1")
    Queue selectLastQueue3();
    @Select("SELECT * FROM queue where state<=0")
    List<Queue> selectErrorQueues();
@@ -43,8 +47,10 @@
    @Delete("delete from queue where state<=0")
    void DeleteErrorQueue();
    @Delete("delete from queue where state<=3")
    @Delete("delete from queue where state<2")
    void DeletefromQueue();
    @Delete("delete from queue where state<1")
    void DeleteQueue();
    @Insert("INSERT into queue  (flowcard,glassId,mateid,glasstype,glasswidth,glassheight,thickness,state,time) VALUES (#{flowcard},#{glassId},#{mateid},#{glasstype},#{glasswidth},#{glassheight},#{thickness},1,NOW())")
    int insertQueueCode(String flowcard,String glassId,int mateid,int glasstype,double glasswidth,double glassheight,double thickness);
}