| | |
| | | } |
| | | return count; |
| | | } |
| | | |
| | | @Override |
| | | public boolean saveToHistory(Integer id) { |
| | | CommandInfo commandInfo = this.baseMapper.selectById(id); |
| | | String jsonString = JSON.toJSONString(commandInfo); |
| | | CommandInfoLog commandInfoLog = JSON.parseObject(jsonString, CommandInfoLog.class); |
| | | commandInfoLog.setId(null); |
| | | boolean result1 = commandInfoLogService.insert(commandInfoLog); |
| | | Integer result2 = this.baseMapper.deleteById(id); |
| | | return result1 && result2 > 0; |
| | | } |
| | | |
| | | @Override |
| | | public List<CommandInfo> selectCompleteManualCommand() { |
| | | return this.baseMapper.selectCompleteManualCommand(); |
| | | } |
| | | } |