Commit dd5044a1 by fudahua

企业微信标签同步

parent 5bebfb77
...@@ -184,7 +184,7 @@ public class QywxTagServiceImpl implements QywxTagService { ...@@ -184,7 +184,7 @@ public class QywxTagServiceImpl implements QywxTagService {
item.setQywxTagItemId(id); item.setQywxTagItemId(id);
item.setUpdateTime(new Date()); item.setUpdateTime(new Date());
item.setStatusFlag(0); item.setStatusFlag(0);
qywxTagItemMapper.updateByPrimaryKey(item); qywxTagItemMapper.updateByPrimaryKeySelective(item);
return true; return true;
} }
} }
...@@ -236,7 +236,10 @@ public class QywxTagApiServiceImpl implements QywxTagApiService { ...@@ -236,7 +236,10 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
} else if (relationTypeEnum.getTagType() == QywxTagRelationTypeEnum.TAG_ITEM.getTagType()) { } else if (relationTypeEnum.getTagType() == QywxTagRelationTypeEnum.TAG_ITEM.getTagType()) {
TabQywxTagItem qywxTagItem = qywxTagService.getQywxTagItemByQywxItemKey(wxEnterpriseDto.getWxEnterpriseId(), callbackDTO.getTagId()); TabQywxTagItem qywxTagItem = qywxTagService.getQywxTagItemByQywxItemKey(wxEnterpriseDto.getWxEnterpriseId(), callbackDTO.getTagId());
if (null == qywxTagItem) { if (null == qywxTagItem) {
logger.info("没有关联,无需操作"); List<String> ids = new ArrayList<>();
ids.add(callbackDTO.getTagId());
QywxGetCorpTagListDTO tagList = qywxSuiteApiService.getCorpTagList(wxEnterpriseDto.getCorpid(), config.getWxSuiteid(), ids, QywxTagRelationTypeEnum.TAG_ITEM.getType());
logger.info("没有关联,无需操作:{}", JSONObject.toJSONString(tagList));
return; return;
} }
List<TabQywxTagRelation> relations = qywxTagService.listQywxTagRelationByMemberTagId(wxEnterpriseDto.getWxEnterpriseId(), qywxTagItem.getQywxTagId()); List<TabQywxTagRelation> relations = qywxTagService.listQywxTagRelationByMemberTagId(wxEnterpriseDto.getWxEnterpriseId(), qywxTagItem.getQywxTagId());
......
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