修改百度智能外呼对接。

This commit is contained in:
haown 2024-09-13 14:12:52 +08:00
parent 2b7afe7d52
commit 9b1d02fa25

View File

@ -471,7 +471,7 @@ public class AIOBServiceImpl implements IAIOBService {
*/
private void parseQuestionInfo(JSONArray records, SignPatientManageRouteNode node, Long patientInfoId, Long taskExecuteRecordId) {
List<AiboRecord> aiboRecords = records.toList(AiboRecord.class);
List<AiboRecord> speechList = aiboRecords.stream().filter(record -> StringUtils.equals("speech", record.getRole()))
List<AiboRecord> speechList = aiboRecords.stream().filter(record -> StringUtils.equals("speech", record.getRole()) && !StringUtils.equals("抱歉,我不太理解您的意思", record.getContextText()))
.collect(Collectors.toMap(AiboRecord::getContextText, p -> p, (p1, p2) -> p2))
.values()
.stream()