| | |
| | | vos = allList.stream().map(AiProductQuestion -> { |
| | | AdminMoveChooseInfoVo vo = new AdminMoveChooseInfoVo(); |
| | | vo.setId(AiProductQuestion.getId()); |
| | | String name = AiProductQuestion.getTitle(); |
| | | String difficulty = AiProductQuestion.getDifficulty() == 1 ? "简单" : AiProductQuestion.getDifficulty() == 2 ? "中等" : "困难"; |
| | | vo.setName(difficulty+"-"+AiProductQuestion.getTitle()); |
| | | name = difficulty+"-"+name; |
| | | String label = AiProductQuestion.getLabel(); |
| | | if (StrUtil.isNotEmpty(label)){ |
| | | name = label+"-"+name; |
| | | } |
| | | vo.setName(name); |
| | | return vo; |
| | | }).collect(Collectors.toList()); |
| | | } |