|
@@ -375,6 +375,20 @@ public class TrainingDemandServiceImpl implements TrainingDemandService {
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public R releasedPreviewTrainDemand(String id) {
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ log.debug("参数异常");
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+ List<TrainingDemandSurveyBackupsDo> trainingDemandSurveyBackupsDo = trainingDemandSurveyBackupsServiceImpl
|
|
|
+ .list(new LambdaQueryWrapper<TrainingDemandSurveyBackupsDo>().eq(TrainingDemandSurveyBackupsDo::getOldSurveyId,id));
|
|
|
+ List<TrainingDemandVo> surveyContent = demandSurveyContentDao.getSurveyContent(trainingDemandSurveyBackupsDo.get(0).getId(), "");
|
|
|
+ LinkedHashMap<String, List<TrainingDemandVo>> collect = surveyContent.stream()
|
|
|
+ .collect(Collectors.groupingBy(TrainingDemandVo::getModelName, LinkedHashMap::new, Collectors.toList()));
|
|
|
+ return R.ok(collect);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 数据保存
|
|
|
*
|