| | |
| | | return ResponseResult.error("关键词不存在"); |
| | | } |
| | | if (!"completed".equals(keyword.getStatus())) { |
| | | return ResponseResult.error("关键词采集未完成"); |
| | | return ResponseResult.success(); |
| | | } |
| | | List<KeywordStaticsVO> statics = this.getBaseMapper().statics(keywordId, questionId, keyword.getNum()); |
| | | vo.setNowRecord(statics); |
| | | if (keyword.getNum() != 0) { |
| | | statics = this.getBaseMapper().statics(keywordId, questionId, keyword.getNum() - 1); |
| | | if (keyword.getNum() > 1) { |
| | | statics = this.getBaseMapper().statics(keywordId, questionId, 1); |
| | | vo.setBeforeRecord(statics); |
| | | } |
| | | return ResponseResult.success(vo); |