修改百度智能外呼对接。
This commit is contained in:
parent
2b7afe7d52
commit
9b1d02fa25
@ -471,7 +471,7 @@ public class AIOBServiceImpl implements IAIOBService {
|
|||||||
*/
|
*/
|
||||||
private void parseQuestionInfo(JSONArray records, SignPatientManageRouteNode node, Long patientInfoId, Long taskExecuteRecordId) {
|
private void parseQuestionInfo(JSONArray records, SignPatientManageRouteNode node, Long patientInfoId, Long taskExecuteRecordId) {
|
||||||
List<AiboRecord> aiboRecords = records.toList(AiboRecord.class);
|
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))
|
.collect(Collectors.toMap(AiboRecord::getContextText, p -> p, (p1, p2) -> p2))
|
||||||
.values()
|
.values()
|
||||||
.stream()
|
.stream()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user