| | |
| | | @RequestParam(value = "typeId", required = false) Integer typeId, |
| | | @RequestParam(value = "isNow") Integer isNow) { |
| | | Keyword keyword = keywordService.getById(keywordId); |
| | | |
| | | |
| | | if (isNow == 0) { |
| | | List<PlatformProportionVO> result = keywordMapper.getResultByTypeId(keywordId, questionId, |
| | | keyword.getNum() , typeId); |
| | |
| | | List<String> typeNameList = result.stream() |
| | | .map(PlatformProportionVO::getType_name) |
| | | .filter(Objects::nonNull) |
| | | .distinct() |
| | | .collect(Collectors.toList()); |
| | | |
| | | // 3. 导出Excel |
| | |
| | | // 定义日期格式化器 |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | Map<String, FeedExportExcel> timeMap = references.stream() |
| | | .filter(excel -> excel.getCreate_time() != null) |
| | | .collect(Collectors.toMap( |
| | | excel -> excel.getCreate_time().format(formatter), |
| | | |
| | | excel -> excel, // Value映射 |
| | | (oldValue, newValue) -> oldValue // 键冲突处理(保留旧值) |
| | | excel -> excel, |
| | | (oldValue, newValue) -> oldValue |
| | | )); |
| | | |
| | | try { |