|
@@ -172,14 +172,14 @@ public class ChatServiceImpl implements ChatService {
|
|
|
String history_code = chat.getHistory_code();
|
|
|
|
|
|
ChatHistory chatHistory = chatHistoryDao.selectOne(new LambdaQueryWrapper<ChatHistory>()
|
|
|
- .eq(ChatHistory::getDel_flag, -1)
|
|
|
+ .eq(ChatHistory::getDel_flag, chat.getDel_flag())
|
|
|
.eq(ChatHistory::getHistory_code, history_code));
|
|
|
if (chatHistory == null) throw new CustException("对话历史不存在");
|
|
|
|
|
|
PageUtils.startPage(); // 分页
|
|
|
LambdaQueryWrapper<Chat> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(Chat::getHistory_code, history_code);
|
|
|
- wrapper.eq(Chat::getDel_flag, -1);
|
|
|
+ wrapper.eq(Chat::getDel_flag, chat.getDel_flag());
|
|
|
wrapper.orderByAsc(Chat::getCreate_time);
|
|
|
List<Chat> list = chatDao.selectList(wrapper);
|
|
|
|