| | |
| | | switch (type) { |
| | | case Crn: |
| | | CrnCommand crnCommand = JSON.parseObject(commandPackage.getCommand().toString(), CrnCommand.class); |
| | | MessageQueue.offer(type, crnCommand.getCrnNo(), new Task(2, crnCommand)); |
| | | MessageQueue.offer(type, crnCommand.getCrnNo(), new Task(5, crnCommand)); |
| | | break; |
| | | case Devp: |
| | | StaProtocol staProtocol = JSON.parseObject(commandPackage.getCommand().toString(), StaProtocol.class); |
| | | MessageQueue.offer(type, staProtocol.getSiteId(), new Task(2, staProtocol)); |
| | | MessageQueue.offer(type, staProtocol.getSiteId(), new Task(3, staProtocol)); |
| | | break; |
| | | } |
| | | } |