|
@@ -143,7 +143,12 @@ public class KlgBaseQuestionsService extends ServiceImpl<KlgBaseQuestionsMapper,
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(klgBaseQuestionsDTO)) {
|
|
if (ObjectUtil.isNotEmpty(klgBaseQuestionsDTO)) {
|
|
if(StringUtils.isNotBlank(klgBaseQuestionsDTO.getContent())){
|
|
if(StringUtils.isNotBlank(klgBaseQuestionsDTO.getContent())){
|
|
- klgBaseQuestionsDTO.setContent(editorFilesService.getNewContent(klgBaseQuestionsDTO.getContent(), id));
|
|
|
|
|
|
+ String newContent = editorFilesService.getNewContent(klgBaseQuestionsDTO.getContent(), id);
|
|
|
|
+ klgBaseQuestionsDTO.setContent(newContent);
|
|
|
|
+ KlgBaseQuestions k = new KlgBaseQuestions();
|
|
|
|
+ k.setId(id);
|
|
|
|
+ k.setContent(newContent);
|
|
|
|
+ this.update(k, new QueryWrapper<KlgBaseQuestions>().lambda().eq(KlgBaseQuestions::getId, id));
|
|
List<EditorFiles> list = editorFilesService.list(new QueryWrapper<EditorFiles>().lambda().eq(EditorFiles::getSourceId, id));
|
|
List<EditorFiles> list = editorFilesService.list(new QueryWrapper<EditorFiles>().lambda().eq(EditorFiles::getSourceId, id));
|
|
List<EditorFilesDTO> editorFilesDTOList = new ArrayList<>();
|
|
List<EditorFilesDTO> editorFilesDTOList = new ArrayList<>();
|
|
list.stream().forEach(item->{
|
|
list.stream().forEach(item->{
|
|
@@ -158,7 +163,12 @@ public class KlgBaseQuestionsService extends ServiceImpl<KlgBaseQuestionsMapper,
|
|
if (CollectionUtil.isNotEmpty(klgBaseQuestionsDTO.getKlgBaseReplyDTOList())){
|
|
if (CollectionUtil.isNotEmpty(klgBaseQuestionsDTO.getKlgBaseReplyDTOList())){
|
|
klgBaseQuestionsDTO.getKlgBaseReplyDTOList().stream().forEach(item->{
|
|
klgBaseQuestionsDTO.getKlgBaseReplyDTOList().stream().forEach(item->{
|
|
if (StringUtils.isNotBlank(item.getContent())){
|
|
if (StringUtils.isNotBlank(item.getContent())){
|
|
- item.setContent(editorFilesService.getNewContent(item.getContent(), item.getId()));
|
|
|
|
|
|
+ String newC = editorFilesService.getNewContent(item.getContent(), item.getId());
|
|
|
|
+ KlgBaseReply kr = new KlgBaseReply();
|
|
|
|
+ kr.setId(item.getId());
|
|
|
|
+ kr.setContent(newC);
|
|
|
|
+ klgBaseReplyMapper.update(kr, new QueryWrapper<KlgBaseReply>().lambda().eq(KlgBaseReply::getId, item.getId()));
|
|
|
|
+ item.setContent(newC);
|
|
List<EditorFiles> list = editorFilesService.list(new QueryWrapper<EditorFiles>().lambda().eq(EditorFiles::getSourceId, item.getId()));
|
|
List<EditorFiles> list = editorFilesService.list(new QueryWrapper<EditorFiles>().lambda().eq(EditorFiles::getSourceId, item.getId()));
|
|
List<EditorFilesDTO> editorFilesDTOS = new ArrayList<>();
|
|
List<EditorFilesDTO> editorFilesDTOS = new ArrayList<>();
|
|
list.stream().forEach(i->{
|
|
list.stream().forEach(i->{
|