| | |
| | | List<alarmmg> SelectAlarmmgInfo(); |
| | | |
| | | //获取理片笼内玻璃信息 |
| | | @Select("select *,concat(glasswidth,' x ',glassheight) as lengthwidth from storage_cage ") |
| | | @Select("select *,concat(round(a.glasswidth*b.Conversionrate,2),' x ',round(a.glassheight*b.Conversionrate,2)) as lengthwidth from storage_cage as a,glass as b ") |
| | | List<StorageCage> SelectCageInfo(short cage); |
| | | |
| | | @Update("update storage_cage set state=0,glass_id=null,order_id=null,glasswidth=null,glassheight=null where glass_id=#{glassid}") |
| | |
| | | StorageCage SelectGlassInfo(String glassid); |
| | | |
| | | //查询玻璃信息 |
| | | @Select("select * from glass where glassid=#{glassid}") |
| | | // @Select("select * from glass where glassid=#{glassid}") |
| | | @Select("SELECT id,glassid,orderid,\n" + |
| | | " ROUND(width * Conversionrate, 2) AS width,\n" + |
| | | " ROUND(height * Conversionrate, 2) AS height\n" + |
| | | "FROM glass\n" + |
| | | "where glassid=#{glassid};") |
| | | Glass SelectGlassByGlassID(String glassid); |
| | | |
| | | //启用/禁用理片笼格子 |
| | |
| | | //查询理片笼中是否有此玻璃 |
| | | @Select("select count(*) from storage_cage where glass_id=#{glassId}") |
| | | short SelectStorageByGlassId(String glassId); |
| | | //根据订单查询玻璃信息 |
| | | @Select("select * from glass where position(#{orderid} in orderid)") |
| | | List<Glass> SelectGlass(String orderid); |
| | | //获取上片队列信息 |
| | | @Select("select gl.* from queue qe inner join glass gl on qe.glassid=gl.glassid where qe.id=#{id}") |
| | | Glass GetQueueInfo(int id); |
| | | //手动添加扫码位玻璃 |
| | | @Select("update queue set glassid=#{glassid},state=0 where id=1") |
| | | void InsertQueueGlassId(String glassid); |
| | | //手动添加扫码位玻璃 |
| | | @Select("update queue set state=1 where id=1") |
| | | void UpdateQueueState(); |
| | | |
| | | |
| | | } |