feat(conversation): add conversation_scene field

This commit is contained in:
2026-07-14 17:08:35 +08:00
parent 895c78d60e
commit 4bc643024d
2 changed files with 8 additions and 0 deletions

View File

@@ -30,5 +30,6 @@ public class Conversation extends BaseEntity {
private Long contractId; private Long contractId;
private String channelCode; private String channelCode;
private String receiveConfig; private String receiveConfig;
private Integer conversationScene;
private Integer status; private Integer status;
} }

View File

@@ -0,0 +1,7 @@
ALTER TABLE mci_conversation
ADD COLUMN conversation_scene TINYINT NULL COMMENT '会话场景1=内部群 2=外部群';
-- 现有数据:群聊默认外部群(客户群)
UPDATE mci_conversation
SET conversation_scene = 2
WHERE conversation_type = 2 AND conversation_scene IS NULL;