| | |
| | | return ResponseResult.success(); |
| | | } |
| | | List<KeywordStaticsVO> statics = this.getBaseMapper().statics(keywordId, questionId, keyword.getNum()); |
| | | vo.setNowRecord(statics); |
| | | List<KeywordStaticsVO> top30 = statics.subList(0, Math.min(statics.size(), 30)); |
| | | vo.setNowRecord(top30); |
| | | if (keyword.getNum() > 1) { |
| | | statics = this.getBaseMapper().statics(keywordId, questionId, 1); |
| | | vo.setBeforeRecord(statics); |
| | | top30 = statics.subList(0, Math.min(statics.size(), 30)); |
| | | vo.setBeforeRecord(top30); |
| | | } |
| | | return ResponseResult.success(vo); |
| | | } |