代码提交

topo_dev
liu 11 months ago
parent ccde88129f
commit d78ed2bc77

@ -83,10 +83,11 @@ public class NoteRecordSplitServiceImpl extends ServiceImpl<NoteRecordSplitMappe
} }
}*/ }*/
int i; int i;
NoteRecord record = records.toNoteRecord();
if (StringUtils.isEmpty(records.getId())) { if (StringUtils.isEmpty(records.getId())) {
i = noteRecordMapper.insert(records.toNoteRecord()); i = noteRecordMapper.insert(record);
} else { } else {
i = noteRecordMapper.updateById(records.toNoteRecord()); i = noteRecordMapper.updateById(record);
} }
//所有对话类型 //所有对话类型
List<ModelRecordType> allTypeList = modelRecordTypeService.lambdaQuery().list(); List<ModelRecordType> allTypeList = modelRecordTypeService.lambdaQuery().list();
@ -103,14 +104,14 @@ public class NoteRecordSplitServiceImpl extends ServiceImpl<NoteRecordSplitMappe
continue; continue;
} }
String context = WordReadUtil.readWord(inputStream); String context = WordReadUtil.readWord(inputStream);
List<QARecordNodeDTO> qaList = RecordRegexUtil.recordRegex(context, records.getName()); List<QARecordNodeDTO> qaList = RecordRegexUtil.recordRegex(context, record.getName());
for (QARecordNodeDTO qa : qaList) { for (QARecordNodeDTO qa : qaList) {
try { try {
NoteRecordSplit noteRecord = new NoteRecordSplit(); NoteRecordSplit noteRecord = new NoteRecordSplit();
noteRecord.setCaseId(records.getCaseId()); noteRecord.setCaseId(record.getCaseId());
noteRecord.setNoteRecordId(records.getId()); noteRecord.setNoteRecordId(record.getId());
noteRecord.setNoteName(minioFile.getFilename()); noteRecord.setNoteName(minioFile.getFilename());
noteRecord.setPersonName(records.getName()); noteRecord.setPersonName(record.getName());
noteRecord.setQuestion(qa.getQuestion()); noteRecord.setQuestion(qa.getQuestion());
noteRecord.setAnswer(qa.getAnswer()); noteRecord.setAnswer(qa.getAnswer());
noteRecord.setCreateTime(LocalDateTime.now()); noteRecord.setCreateTime(LocalDateTime.now());
@ -122,7 +123,7 @@ public class NoteRecordSplitServiceImpl extends ServiceImpl<NoteRecordSplitMappe
} }
} }
} }
caseStatusManageService.whenUploadRecord(records.getCaseId()); caseStatusManageService.whenUploadRecord(record.getCaseId());
return "保存成功"; return "保存成功";
} else { } else {
return "保存笔录失败"; return "保存笔录失败";

Loading…
Cancel
Save