| | |
| | | import com.example.springboot.entity.north_glass_buffer1; |
| | | import com.example.springboot.entity.Out_slice; |
| | | import com.example.springboot.entity.Queue; |
| | | import com.example.springboot.entity.RolePermission; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | Queue GetQueueInfo(int id); |
| | | |
| | | //手动添加扫码位玻璃 |
| | | @Select("update queue set glassid=#{queue.glassId},orderid=#{queue.orderId},listId=#{queue.listId},boxId=#{queue.boxId},glasswidth=#{queue.glasswidth},glassheight=#{queue.glassheight},glasswidthmm=#{queue.glasswidthmm},glassheightmm=#{queue.glassheightmm},state=1 where id=#{id}") |
| | | @Update("update queue set glassid=#{queue.glassId},orderid=#{queue.orderId},listId=#{queue.listId},boxId=#{queue.boxId},glasswidth=#{queue.glasswidth},glassheight=#{queue.glassheight},glasswidthmm=#{queue.glasswidthmm},glassheightmm=#{queue.glassheightmm},state=1 where id=#{id}") |
| | | void InsertQueueGlassId(Queue queue,Short id); |
| | | |
| | | //确认扫码位玻璃信息 |
| | | @Select("update queue set state=1 where id=1") |
| | | @Update("update queue set state=1 where id=1") |
| | | void UpdateQueueState(); |
| | | |
| | | //手动添加扫码位玻璃 |
| | | @Select("update queue set glassid=null,orderid=null,listid=null,boxid=null,glasswidth=null,glassheight=null,glasswidthmm=null,glassheightmm=null,state=0 where id=#{id}") |
| | | @Update("update queue set glassid=null,orderid=null,listid=null,boxid=null,glasswidth=null,glassheight=null,glasswidthmm=null,glassheightmm=null,state=0 where id=#{id}") |
| | | void DeleteQueueGlass(String id); |
| | | |
| | | //查询此订单在理片笼里的玻璃数 |
| | |
| | | |
| | | |
| | | //根据玻璃id删除出片队列玻璃 |
| | | @Select("update out_slice set state=3 where barcode=#{FrameNo} and (state=0 or state=1 or state=2)") |
| | | @Update("update out_slice set state=4 where barcode=#{FrameNo} and (state=0 or state=1 or state=2)") |
| | | void DeleteProductionQueueGlass(String id); |
| | | |
| | | //根据铝框id查询对应玻璃信息 |
| | |
| | | Out_slice SelectQueueByglassid(String getbarcode); |
| | | |
| | | //添加出片队列 |
| | | @Select("INSERT INTO out_slice( `glassId`, `barcode`, `glasswidth`, `glassheight`, `state`, `flip`, `sequence`, `time` ,`position`) VALUES ( #{glassid}, #{FrameNo}, #{glasslengthMm}, #{glassheightMm}, 0, #{flip}, #{sequence}, now(), #{position});") |
| | | @Insert("INSERT INTO out_slice( `glassId`, `barcode`, `glasswidth`, `glassheight`, `state`, `flip`, `sequence`, `time` ,`position`) VALUES ( #{glassid}, #{FrameNo}, #{glasslengthMm}, #{glassheightMm}, 0, #{flip}, #{sequence}, now(), #{position});") |
| | | void AddOutSliceS(String glassid, String flip, String FrameNo, String glasslengthMm, String glassheightMm, int sequence, String position); |
| | | |
| | | //出片队列调序 |
| | | @Select("update out_slice set sequence=#{sequence} where glassid=#{glassId}") |
| | | @Update("update out_slice set sequence=#{sequence} where glassid=#{glassId}") |
| | | void UpdateOutSliceSequence(String glassId,int sequence); |
| | | |
| | | //查询出片队列最大顺序 |
| | | @Select("select ifnull(max(sequence),0)+1 from out_slice ") |
| | | Short SelectMaxSquence(); |
| | | //查询用户权限 |
| | | @Select("select rp.* from role_permission rp inner join user r on rp.role_id=r.role_id and r.username=#{username} and (permission_id=32 or permission_id=33 or permission_id=34 or permission_id=35)") |
| | | List<RolePermission> SelectPermissionByUserName(String username); |
| | | //完成出片任务 |
| | | @Update("update out_slice set state=2 where id=#{id}") |
| | | void CompleteQueue(String id); |
| | | |
| | | //查询铝框id对应玻璃完成数量 |
| | | @Select("select count(*) from out_slice where barcode=#{frameid} and state<2") |
| | | Short SelectCountByFrameNo(String frameid); |
| | | |
| | | //铝框id对应玻璃改完全部完成状态 |
| | | @Update("update out_slice set state=3 where barcode=#{frameid} and state=2") |
| | | void CompleteQueueByFrameNo(String frameid); |
| | | |
| | | } |