| | |
| | | } |
| | | page.newLine("\n"); |
| | | |
| | | //更新指令状态 |
| | | CommandInfoService commandInfoService = SpringUtils.getBean(CommandInfoService.class); |
| | | CommandInfo commandInfo = new CommandInfo(); |
| | | commandInfo.setWrkNo(command.getWorkNo()); |
| | | commandInfo.setCommandStatus(1); |
| | | commandInfo.setStartTime(new Date()); |
| | | commandInfo.setDevice("led"); |
| | | commandInfo.setCommand(JSON.toJSONString(command)); |
| | | commandInfoService.insert(commandInfo); |
| | | CommandInfo commandInfo = command.getCommandInfo(); |
| | | commandInfo.setCommandStatus(2); |
| | | commandInfoService.updateById(commandInfo); |
| | | } |
| | | |
| | | // 设置字体 |