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