Commit 5185fb98 by 墨竹

fix:标签bug修改

parent 6afd450b
......@@ -613,7 +613,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
@Override
public ServiceResponse syncQywxTagToGicByExternalUserId(String wxEnterpriseId, String externalUserId, String wxUserId) {
//todo 刷新标签的时候不允许同步
//刷新标签的时候不允许同步
ServiceResponse resp = new ServiceResponse();
//所有以及关联同步的标签
QywxSyncTagFormatPojo syncTagFormatPojo = listSyncTagItems(wxEnterpriseId);
......@@ -640,11 +640,15 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
return resp;
}
Map<String, Set<String>> externalTagMap = getExternalTagMap(externalUseridInfo, wxEnterpriseId);
if (MapUtils.isEmpty(externalTagMap)) {
logger.info("该用户没有不存在好友关系,获取不到关联导购打的标签,:externalUseridInfo:{}",externalUseridInfo);
resp.setMessage("该用户没有不存在好友关系,获取不到关联导购打的标签");
return resp;
}
//当前操作用户企业打的标签
Set<String> staffChangeTagKeys = externalTagMap.get(wxUserId);
if (CollectionUtils.isEmpty(staffChangeTagKeys)) {
logger.info("该用户没有不存在好友关系,获取不到关联导购打的标签");
logger.info("该用户没有不存在好友关系,获取不到关联导购打的标签,wxUserId:{}",wxUserId);
resp.setMessage("该用户没有不存在好友关系,获取不到关联导购打的标签");
return resp;
}
......@@ -653,7 +657,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
//获取该外部联系人的所有会员
List<TabHaobanExternalClerkRelated> clerkRelateds = externalClerkRelatedService.listExternalByExternalUserid(wxEnterpriseId, externalUserId);
if (CollectionUtils.isEmpty(clerkRelateds)) {
logger.info("该用户没关联对应的好友:{}");
logger.info("该用户没关联对应的好友:{}",externalUserId);
resp.setMessage("该用户没关联对应的好友");
return resp;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment