Commit 48573527 by songyinghui

feat: 获取有权限的企业id

parent 4cbdbaa8
...@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.content.adaptor; ...@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.content.adaptor;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
import com.gic.enterprise.api.constant.EnterpriseServiceEnum;
import com.gic.enterprise.api.dto.enterprise.EnterpriseUsingStatusDTO; import com.gic.enterprise.api.dto.enterprise.EnterpriseUsingStatusDTO;
import com.gic.enterprise.api.service.EnterpriseUseForbidService; import com.gic.enterprise.api.service.EnterpriseUseForbidService;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
...@@ -44,7 +45,7 @@ public class MaterialEnterpriseAdaptor { ...@@ -44,7 +45,7 @@ public class MaterialEnterpriseAdaptor {
*/ */
public List<String> queryHasRightEnterpriseIds(Integer highLevel) { public List<String> queryHasRightEnterpriseIds(Integer highLevel) {
ServiceResponse<List<EnterpriseUsingStatusDTO>> serviceResponse = enterpriseUseForbidService.getUseEnterpriseByCode("", null); ServiceResponse<List<EnterpriseUsingStatusDTO>> serviceResponse = enterpriseUseForbidService.getUseEnterpriseByCode(EnterpriseServiceEnum.CONTENT.getRightMenuCode(), null);
if (!serviceResponse.isSuccess()) { if (!serviceResponse.isSuccess()) {
log.info("查询企业信息异常 {}", JSON.toJSONString(serviceResponse)); log.info("查询企业信息异常 {}", JSON.toJSONString(serviceResponse));
return Collections.emptyList(); return Collections.emptyList();
......
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