Commit 36f468ff authored by alex yao's avatar alex yao

fix:修复 门户页对话记录 对话id记录异常

parent 57cae5c5
......@@ -163,7 +163,7 @@ public class PortalServiceImpl implements PortalService {
BizAgentApplicationDialoguesRecordEntity outputRecord = new BizAgentApplicationDialoguesRecordEntity();
outputRecord.setRole(AgentApplicationDialoguesRecordConstants.ROLE.ASSISTANT);
outputRecord.setAgentId(infoEntity.getAgentId());
outputRecord.setDialogsId(agentId);
outputRecord.setDialogsId(callEntity.getDialoguesId());
outputRecord.setMemberId(userId);
outputRecord.setTimestamp(System.currentTimeMillis());
outputRecord.setContent(agentResultEntity.getMessage());
......@@ -171,8 +171,7 @@ public class PortalServiceImpl implements PortalService {
bizAgentApplicationDialoguesRecordService.save(outputRecord);
}
private List<Message> buildMessages(String dialogsId, String agentId, Long userId, String input) throws
Exception {
private List<Message> buildMessages(String dialogsId, String agentId, Long userId, String input) throws Exception {
List<Message> messages = new ArrayList<>();
BizAgentApplicationDialoguesRecordEntity recordEntity = new BizAgentApplicationDialoguesRecordEntity();
recordEntity.setDialogsId(dialogsId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment