|
|
|
|
@ -72,7 +72,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
// 查询用的标签关联实体
|
|
|
|
|
SiteInfoTag infoTag = new SiteInfoTag();
|
|
|
|
|
infoTag.setSiteId(id);
|
|
|
|
|
// 处理禁用企微标签数组
|
|
|
|
|
// 处理禁用外部标签数组
|
|
|
|
|
if (StringUtils.isNotEmpty(siteInfo.getForbidCompanyTagId())) {
|
|
|
|
|
// 关联表查询数据
|
|
|
|
|
infoTag.setTagType(2);
|
|
|
|
|
@ -99,7 +99,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
List<Long> showWechatList = siteInfoTags.stream().map(SiteInfoTag::getTagId).collect(Collectors.toList());
|
|
|
|
|
siteInfo.setShowWechatTagArray(showWechatList);
|
|
|
|
|
}
|
|
|
|
|
// 处理可见企微标签数组
|
|
|
|
|
// 处理可见外部标签数组
|
|
|
|
|
if (StringUtils.isNotEmpty(siteInfo.getShowCompanyTagId())) {
|
|
|
|
|
// 关联表查询数据
|
|
|
|
|
infoTag.setTagType(2);
|
|
|
|
|
@ -117,7 +117,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
List<Long> handlerWechatList = siteInfoTags.stream().map(SiteInfoTag::getTagId).collect(Collectors.toList());
|
|
|
|
|
siteInfo.setHandlerWechatTagArray(handlerWechatList);
|
|
|
|
|
}
|
|
|
|
|
// 处理弹窗活动企微标签
|
|
|
|
|
// 处理弹窗活动外部标签
|
|
|
|
|
if (StringUtils.isNotEmpty(siteInfo.getHandlerCompanyTagId())){
|
|
|
|
|
// 关联表查询数据
|
|
|
|
|
infoTag.setTagType(2);
|
|
|
|
|
@ -193,7 +193,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
infoTag.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
siteInfoTagMapper.insertSiteInfoTag(infoTag);
|
|
|
|
|
}
|
|
|
|
|
// 保存可见企微标签关联关系
|
|
|
|
|
// 保存可见外部标签关联关系
|
|
|
|
|
for (SysTag tag: showCompanyTagNew) {
|
|
|
|
|
SiteInfoTag infoTag = new SiteInfoTag();
|
|
|
|
|
infoTag.setSiteId(siteInfo.getId());
|
|
|
|
|
@ -215,7 +215,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
infoTag.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
siteInfoTagMapper.insertSiteInfoTag(infoTag);
|
|
|
|
|
}
|
|
|
|
|
// 保存禁用企微标签关联关系
|
|
|
|
|
// 保存禁用外部标签关联关系
|
|
|
|
|
for (SysTag tag: forbidCompanyTagNew) {
|
|
|
|
|
SiteInfoTag infoTag = new SiteInfoTag();
|
|
|
|
|
infoTag.setSiteId(siteInfo.getId());
|
|
|
|
|
@ -247,7 +247,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
infoTag.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
siteInfoTagMapper.insertSiteInfoTag(infoTag);
|
|
|
|
|
}
|
|
|
|
|
// 保存获得企微标签关联关系
|
|
|
|
|
// 保存获得外部标签关联关系
|
|
|
|
|
for (SysTag tag: handlerCompanyTagNew) {
|
|
|
|
|
SiteInfoTag infoTag = new SiteInfoTag();
|
|
|
|
|
infoTag.setSiteId(siteInfo.getId());
|
|
|
|
|
@ -291,7 +291,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
String ids = StringUtils.join(resultList, ",");
|
|
|
|
|
siteInfo.setShowWechatTagId(ids);
|
|
|
|
|
}
|
|
|
|
|
// 保存可见企微标签
|
|
|
|
|
// 保存可见外部标签
|
|
|
|
|
if (!CollectionUtils.isEmpty(siteInfo.getShowCompanyTagArray())) {
|
|
|
|
|
List<Long> showCompanyTagArray = siteInfo.getShowCompanyTagArray();
|
|
|
|
|
for(long tagId : showCompanyTagArray) {
|
|
|
|
|
@ -325,7 +325,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
String ids = StringUtils.join(resultList, ",");
|
|
|
|
|
siteInfo.setForbidWechatTagId(ids);
|
|
|
|
|
}
|
|
|
|
|
// 保存禁用企微标签
|
|
|
|
|
// 保存禁用外部标签
|
|
|
|
|
if (!CollectionUtils.isEmpty(siteInfo.getForbidCompanyTagArray())) {
|
|
|
|
|
List<Long> forbidCompanyTagArray = siteInfo.getForbidCompanyTagArray();
|
|
|
|
|
for(long tagId : forbidCompanyTagArray) {
|
|
|
|
|
@ -343,7 +343,7 @@ public class SiteInfoServiceImpl implements ISiteInfoService
|
|
|
|
|
siteInfo.setForbidCompanyTagId(ids);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 保存获得企微标签
|
|
|
|
|
// 保存获得外部标签
|
|
|
|
|
if (!CollectionUtils.isEmpty(siteInfo.getHandlerCompanyTagArray())) {
|
|
|
|
|
List<Long> handlerCompanyTagArray = siteInfo.getHandlerCompanyTagArray();
|
|
|
|
|
for(long tagId : handlerCompanyTagArray) {
|
|
|
|
|
|