| | |
| | | // if (keywordTasks.stream().allMatch(task -> |
| | | // "completed".equals(task.getStatus()) || "false".equals(task.getStatus()) || "canceled".equals(task.getStatus()) |
| | | // )) { |
| | | keyword.setStatus("canceled"); |
| | | // keyword.setStatus("canceled"); |
| | | keywordService.updateById(keyword); |
| | | // log.info("关键词 {} 所有任务已完成,更新状态为 completed", keywordId); |
| | | // } |
| | | //更新提问词状态为取消 |
| | | |
| | | questionService.update(new LambdaUpdateWrapper<Question>().eq(Question::getKeyword_id, keywordId).set(Question::getStatus, "canceled")); |
| | | questionService.update(new LambdaUpdateWrapper<Question>().eq(Question::getKeyword_id, keywordId).isNull(Question::getResponse).set(Question::getStatus, "canceled")); |
| | | |
| | | // 更新订单状态 |
| | | String orderId = keyword.getOrder_id(); |