| | |
| | | @Update("update longzi set glass_id =123, width =1600, state =1 where cell =24") |
| | | void update(); |
| | | //获取玻璃信息 |
| | | @Select("select orderid as ordernumber,width as glasslengthmm from glass where glassid=#{glassid}") |
| | | @Select("select ordernumber as ordernumber,glasslength_mm as glasslengthmm,barcode from north_glass_buffer1 where barcode=#{glassid}") |
| | | north_glass_buffer1 selectGlass(String glassid); |
| | | |
| | | @Insert("insert into storage_task(task_type,task_state,shelf_rack,load_rack)values(#{storage_task},#{task_state},#{shelf_rack},#{load_rack})") |
| | |
| | | StorageCage selectOut2(String glassid); |
| | | |
| | | //判断出片为1时,是否可直接出片 |
| | | @Select("select COUNT(state) from storage_cage where cage=#{cage} and cell=#{cell}") |
| | | @Select("select COUNT(state) from storage_cage where cage=#{cage} and cell=#{cell} and state=1") |
| | | int selectGlassState(int cage,int cell); |
| | | |
| | | //判断该调拨的笼子 |
| | |
| | | Integer Selectoutstate(); |
| | | //添加任务序列 |
| | | //获取进片队列id |
| | | @Insert("INSERT INTO `canadames`.`queue`(`glassid`, `type`, `state`,width) VALUES (#{glassid},#{type},0,#{width});") |
| | | @Insert("update queue set glassid=#{glassid},width=#{width} where type=#{type};") |
| | | void insertqueue(String glassid,int type,double width); |
| | | //获取任务序列 |
| | | @Select("select glassid,orderid,width,type from queue where state=#{state}") |
| | |
| | | //获取进片队列id |
| | | @Select("select glassid from queue where type=1") |
| | | String Selectqueueid(); |
| | | //获取进片队列id |
| | | //获取进片队列是否有待出库 |
| | | @Select("select state from queue where type=1") |
| | | String Selectqueuestate(); |
| | | int Selectqueuestate(); |
| | | //判断铝框出片表是否有玻璃需要出 |
| | | @Select("SELECT * FROM `out_slice` where state=0 or state=0 order by id limit 1;") |
| | | @Select("SELECT glassid FROM `out_slice` where state=0 order by id limit 1;") |
| | | String SelectOutSlice(); |
| | | //判断铝框出片表是否有玻璃正在出片中 |
| | | @Select("SELECT count(*) FROM `out_slice` where state=1 or state=0 order by id limit 1;") |
| | | @Select("SELECT count(*) FROM `out_slice` where state=1;") |
| | | int SelectOutSliceshu(); |
| | | |
| | | } |
| | | |