|
|
@ -83,6 +83,7 @@ public class QuManager {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
qu.setCreateTime(new Date());
|
|
|
|
qu.setCreateTime(new Date());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
quService.saveOrUpdate(qu);
|
|
|
|
if(CollUtil.isNotEmpty(reqDTO.getAnswerList())){
|
|
|
|
if(CollUtil.isNotEmpty(reqDTO.getAnswerList())){
|
|
|
|
List<ElQuAnswer> answerList = Convert.toList(ElQuAnswer.class, reqDTO.getAnswerList());
|
|
|
|
List<ElQuAnswer> answerList = Convert.toList(ElQuAnswer.class, reqDTO.getAnswerList());
|
|
|
|
answerList.forEach(elQuAnswer -> elQuAnswer.setQuId(qu.getId()));
|
|
|
|
answerList.forEach(elQuAnswer -> elQuAnswer.setQuId(qu.getId()));
|
|
|
@ -100,7 +101,7 @@ public class QuManager {
|
|
|
|
quRepoService.saveBatch(list);
|
|
|
|
quRepoService.saveBatch(list);
|
|
|
|
reqDTO.getRepoIds().forEach(this::sortRepo);
|
|
|
|
reqDTO.getRepoIds().forEach(this::sortRepo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return quService.saveOrUpdate(qu);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|