Commit dd5044a1 by fudahua

企业微信标签同步

parent 5bebfb77
......@@ -184,7 +184,7 @@ public class QywxTagServiceImpl implements QywxTagService {
item.setQywxTagItemId(id);
item.setUpdateTime(new Date());
item.setStatusFlag(0);
qywxTagItemMapper.updateByPrimaryKey(item);
qywxTagItemMapper.updateByPrimaryKeySelective(item);
return true;
}
}
......@@ -236,7 +236,10 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
} else if (relationTypeEnum.getTagType() == QywxTagRelationTypeEnum.TAG_ITEM.getTagType()) {
TabQywxTagItem qywxTagItem = qywxTagService.getQywxTagItemByQywxItemKey(wxEnterpriseDto.getWxEnterpriseId(), callbackDTO.getTagId());
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;
}
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