Commit 4c3a7b16 by 徐高华

1gic绑定多企微

parent 21c9d070
...@@ -29,6 +29,7 @@ import com.gic.haoban.manage.service.service.DepartmentService; ...@@ -29,6 +29,7 @@ import com.gic.haoban.manage.service.service.DepartmentService;
import com.gic.haoban.manage.service.service.MiniprogramSettingService; import com.gic.haoban.manage.service.service.MiniprogramSettingService;
import com.gic.haoban.manage.service.service.StoreRangeService; import com.gic.haoban.manage.service.service.StoreRangeService;
import com.gic.haoban.manage.service.service.WxEnterpriseRelatedService; import com.gic.haoban.manage.service.service.WxEnterpriseRelatedService;
import com.gic.haoban.manage.service.util.CustomSwitcher;
import com.gic.mq.sdk.GicMQClient; import com.gic.mq.sdk.GicMQClient;
import com.gic.redis.data.util.RedisUtil; import com.gic.redis.data.util.RedisUtil;
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
...@@ -195,6 +196,10 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi ...@@ -195,6 +196,10 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
} }
private String isBindMany(String enterpriseId , String wxEnterpriseId) { private String isBindMany(String enterpriseId , String wxEnterpriseId) {
String eids = CustomSwitcher.haoban_one_bind_many ;
if(eids.contains(enterpriseId)) {
return null ;
}
List<TabHaobanWxEnterpriseRelated> list = this.wxEnterpriseRelatedMapper.listByEnterpriseId(enterpriseId) ; List<TabHaobanWxEnterpriseRelated> list = this.wxEnterpriseRelatedMapper.listByEnterpriseId(enterpriseId) ;
List<String> bindNameList = new ArrayList<>() ; List<String> bindNameList = new ArrayList<>() ;
if(CollectionUtils.isNotEmpty(list)) { if(CollectionUtils.isNotEmpty(list)) {
......
...@@ -12,4 +12,7 @@ public class CustomSwitcher { ...@@ -12,4 +12,7 @@ public class CustomSwitcher {
@Switcher @Switcher
public static String qywx_open_host ; public static String qywx_open_host ;
@Switcher
public static String haoban_one_bind_many ;
} }
\ No newline at end of file
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