|
|
@@ -3929,9 +3929,10 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
|
|
|
qw.setDescription(followUser.getDescription()); // 设置描述信息
|
|
|
List<Tag> tags = followUser.getTags();
|
|
|
|
|
|
+ List<String> tagArr = new ArrayList<>();
|
|
|
+
|
|
|
if (tags != null && tags.size() > 0) {
|
|
|
|
|
|
- List<String> tagArr = new ArrayList<>();
|
|
|
for (Tag tag : tags) {
|
|
|
if (tag != null && tag.getTag_id() != null) {
|
|
|
tagArr.add(tag.getTag_id());
|
|
|
@@ -3944,10 +3945,18 @@ public class QwExternalContactServiceImpl extends ServiceImpl<QwExternalContactM
|
|
|
|
|
|
//新客对话
|
|
|
// processTagsAllByAiChat(qwExternalContact1,corpId,tagArr);
|
|
|
+ }else {
|
|
|
|
|
|
- qw.setTagIds(JSON.toJSONString(tagArr)); // 设置标签ID
|
|
|
+ //客户自带标签空干净了
|
|
|
+ logger.info("客户自带标签空干净了:"+qwExternalContact1.getName()+"|公司"+qwExternalContact1.getCorpId()+"|员工"+qwExternalContact1.getUserId()+"|总标签"+tagArr+"|原标签"+qwExternalContact1.getTagIds());
|
|
|
+
|
|
|
+ //销售删除客户-找这个销售的sop任务中所有的营期里有没有这个客户,删了
|
|
|
+ sopUserLogsInfoMapper.deleteByQwUserIdAndCorpIdToContactId(userID,corpId, externalUserID);
|
|
|
+ sopUserLogsInfoMapper.deleteByQwUserIdAndCorpIdToContactIdByChat(userID,corpId, externalUserID);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ qw.setTagIds(JSON.toJSONString(tagArr)); // 设置标签ID
|
|
|
if (followUser.getRemark_mobiles() != null && followUser.getRemark_mobiles().size() > 0) {
|
|
|
List<String> remarkMobiles = followUser.getRemark_mobiles();
|
|
|
qw.setRemarkMobiles(JSON.toJSONString(remarkMobiles));
|