| | |
| | | keywordTask.setStatus("pending"); |
| | | keywordTaskService.updateById(keywordTask); |
| | | } |
| | | //将提问词列表的状态转为pending |
| | | for (String questionName : batchRequest.getQuestions()) { |
| | | questionService.update(new LambdaUpdateWrapper<Question>().eq(Question::getKeyword_id, keyword.getKeyword_id()).eq(Question::getQuestion,questionName).set(Question::getStatus, "pending")); |
| | | |
| | | } |
| | | // KeywordTask taskToUpdate = keywordTaskService.getOne(new LambdaQueryWrapper<KeywordTask>() |
| | | // .eq(KeywordTask::getKeyword_id, keyword.getKeyword_id()) |
| | | // .eq(KeywordTask::getTask_id, null)); // 确保 task_id 为 null 的任务 |