|
|
@@ -125,8 +125,8 @@ public class LawyerAiInteractionLogServiceImpl extends ServiceImpl<LawyerAiInter
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public R<Map<String, Object>> saveChatLog(String queryText, String responseText, Integer clientUserId) {
|
|
|
- log.info("LawyerAiInteractionLogServiceImpl.sendAIMessage?message={},responseText={},clientUserId={}", queryText, responseText, clientUserId);
|
|
|
+ public R<Map<String, Object>> saveChatLog(LawyerAiInteractionLog aiInteractionLog) {
|
|
|
+ log.info("LawyerAiInteractionLogController.saveChatLog?aiInteractionLog={}", aiInteractionLog);
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
// LawyerAiInteractionLogVo log = new LawyerAiInteractionLogVo();
|
|
|
// log.setClientUserId(clientUserId);
|
|
|
@@ -138,11 +138,12 @@ public class LawyerAiInteractionLogServiceImpl extends ServiceImpl<LawyerAiInter
|
|
|
// log.setUpdatedTime(new Date());
|
|
|
// int num =aiInteractionLogMapper.insertLog(log);
|
|
|
LawyerAiInteractionLog log = new LawyerAiInteractionLog();
|
|
|
- log.setClientUserId(clientUserId);
|
|
|
- log.setQueryText(queryText);
|
|
|
- log.setResponseText(responseText);
|
|
|
+ log.setClientUserId(aiInteractionLog.getClientUserId());
|
|
|
+ log.setQueryText(aiInteractionLog.getQueryText());
|
|
|
+ log.setResponseText(aiInteractionLog.getResponseText());
|
|
|
log.setInteractionTime(new Date());
|
|
|
log.setDeleteFlag(0);
|
|
|
+ log.setSceneId(aiInteractionLog.getSceneId());
|
|
|
log.setCreatedTime(new Date());
|
|
|
log.setUpdatedTime(new Date());
|
|
|
//向表中插入一条新的数据,插入成功后获取插入该条数据的id
|