| | |
| | | |
| | | @Override |
| | | public void run() { |
| | | |
| | | spianService = WebSocketServer.applicationContext.getBean(SpianService.class); |
| | | spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class); |
| | | |
| | | jdbcConnections = WebSocketServer.applicationContext.getBean(JdbcConnections.class); |
| | | while (this != null) { |
| | | try { |
| | | spianService.result=new ArrayList<>(); |
| | | Thread.sleep(300); |
| | | // if (S7control.getinstance().CheckConnected() == false) { |
| | | spianService = WebSocketServer.applicationContext.getBean(SpianService.class); |
| | | spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class); |
| | | |
| | | jdbcConnections = WebSocketServer.applicationContext.getBean(JdbcConnections.class); |
| | | // 根据玻璃id获取订单号,单独数据源 |
| | | |
| | | // try { |
| | |
| | | north_glass_buffer1 glass2 =new north_glass_buffer1(); |
| | | |
| | | try { |
| | | if(queueid1.toString()!=""){ |
| | | glass1 = jdbcConnections.SelectGlassByGlassIdOrderIdFrameIdplchold(queueid1.toString(),"","");// D01玻璃信息 |
| | | if(Plchome.dbconnected==true){ |
| | | if(queueid1.toString()!=""){ |
| | | glass1 = jdbcConnections.SelectGlassByGlassIdOrderIdFrameIdplchold(queueid1.toString(),"","");// D01玻璃信息 |
| | | } |
| | | if(queueid2.toString()!=""){ |
| | | glass2 = jdbcConnections.SelectGlassByGlassIdOrderIdFrameIdplchold(queueid2.toString(),"","");// D02玻璃信息 |
| | | } |
| | | } |
| | | if(queueid2.toString()!=""){ |
| | | glass2 = jdbcConnections.SelectGlassByGlassIdOrderIdFrameIdplchold(queueid2.toString(),"","");// D02玻璃信息 |
| | | } |
| | | |
| | | } catch (SQLException e) { |
| | | e.printStackTrace(); |
| | | } |