feat(sync): default WeCom-synced groups to external scene
This commit is contained in:
@@ -35,6 +35,7 @@ public class SyncDataPersister {
|
|||||||
private static final int PERSON_TYPE_INTERNAL = 1;
|
private static final int PERSON_TYPE_INTERNAL = 1;
|
||||||
private static final int PERSON_TYPE_CUSTOMER = 3;
|
private static final int PERSON_TYPE_CUSTOMER = 3;
|
||||||
private static final int CONVERSATION_TYPE_GROUP = 2;
|
private static final int CONVERSATION_TYPE_GROUP = 2;
|
||||||
|
private static final int CONVERSATION_SCENE_EXTERNAL = 2;
|
||||||
private static final int PARTICIPANT_TYPE_MEMBER = 1;
|
private static final int PARTICIPANT_TYPE_MEMBER = 1;
|
||||||
private static final int PARTICIPANT_TYPE_OWNER = 2;
|
private static final int PARTICIPANT_TYPE_OWNER = 2;
|
||||||
|
|
||||||
@@ -108,6 +109,7 @@ public class SyncDataPersister {
|
|||||||
Long originalSupplierId = conversation.getSupplierId();
|
Long originalSupplierId = conversation.getSupplierId();
|
||||||
Long originalContractId = conversation.getContractId();
|
Long originalContractId = conversation.getContractId();
|
||||||
String originalChannelCode = conversation.getChannelCode();
|
String originalChannelCode = conversation.getChannelCode();
|
||||||
|
Integer originalConversationScene = conversation.getConversationScene();
|
||||||
conversation.setConversationName(conv.getChatName());
|
conversation.setConversationName(conv.getChatName());
|
||||||
conversation.setOwnerAccountId(account.getId());
|
conversation.setOwnerAccountId(account.getId());
|
||||||
conversation.setSubjectId(subjectId);
|
conversation.setSubjectId(subjectId);
|
||||||
@@ -115,6 +117,7 @@ public class SyncDataPersister {
|
|||||||
conversation.setSupplierId(originalSupplierId);
|
conversation.setSupplierId(originalSupplierId);
|
||||||
conversation.setContractId(originalContractId);
|
conversation.setContractId(originalContractId);
|
||||||
conversation.setChannelCode(originalChannelCode);
|
conversation.setChannelCode(originalChannelCode);
|
||||||
|
conversation.setConversationScene(originalConversationScene);
|
||||||
conversationMapper.updateById(conversation);
|
conversationMapper.updateById(conversation);
|
||||||
return conversation;
|
return conversation;
|
||||||
}
|
}
|
||||||
@@ -127,6 +130,7 @@ public class SyncDataPersister {
|
|||||||
newConversation.setOwnerAccountId(account.getId());
|
newConversation.setOwnerAccountId(account.getId());
|
||||||
newConversation.setSubjectId(subjectId);
|
newConversation.setSubjectId(subjectId);
|
||||||
newConversation.setConversationName(conv.getChatName());
|
newConversation.setConversationName(conv.getChatName());
|
||||||
|
newConversation.setConversationScene(CONVERSATION_SCENE_EXTERNAL);
|
||||||
newConversation.setCreateSource(1);
|
newConversation.setCreateSource(1);
|
||||||
newConversation.setStatus(1);
|
newConversation.setStatus(1);
|
||||||
conversationMapper.insert(newConversation);
|
conversationMapper.insert(newConversation);
|
||||||
|
|||||||
Reference in New Issue
Block a user