| | |
| | | // b.put()
|
| | | @Override
|
| | | public void run() {
|
| | | homeMapper = WebSocketServer.applicationContext.getBean(HomeMapper.class);
|
| | | spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class);
|
| | | spianService = WebSocketServer.applicationContext.getBean(SpianService.class);
|
| | | outSliceServive = WebSocketServer.applicationContext.getBean(OutSliceServive.class);
|
| | | north_Glass_Buffer1Service = WebSocketServer.applicationContext
|
| | | .getBean(North_Glass_Buffer1Service.class);
|
| | | storageCageService = WebSocketServer.applicationContext.getBean(StorageCageService.class);
|
| | | dbserve = WebSocketServer.applicationContext.getBean(JdbcConnections.class);
|
| | | |
| | | while (this != null) {
|
| | | Short zhi = 0;
|
| | | JSONObject jsonObject = new JSONObject();
|
| | |
| | | try {
|
| | | Thread.sleep(1000);
|
| | | // 注入mapper
|
| | | |
| | | homeMapper = WebSocketServer.applicationContext.getBean(HomeMapper.class);
|
| | | spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class);
|
| | | spianService = WebSocketServer.applicationContext.getBean(SpianService.class);
|
| | | outSliceServive = WebSocketServer.applicationContext.getBean(OutSliceServive.class);
|
| | | north_Glass_Buffer1Service = WebSocketServer.applicationContext
|
| | | .getBean(North_Glass_Buffer1Service.class);
|
| | | storageCageService = WebSocketServer.applicationContext.getBean(StorageCageService.class);
|
| | | dbserve = WebSocketServer.applicationContext.getBean(JdbcConnections.class);
|
| | |
|
| | | // boolean dbconnected = false;
|
| | | try {
|
| | |
| | | e.printStackTrace();
|
| | | }
|
| | | Short send;
|
| | | if (position.equals("0")) {
|
| | | send = 2;
|
| | | } else {
|
| | | if (position.equals("1")) {
|
| | | send = 1;
|
| | | } else {
|
| | | send = 2;
|
| | | }
|
| | | if (J01id != null) {
|
| | | int barcodeState = spianMapper.SelectOverState(J01id);// 获取该铝框的状态
|