Commit 01fa3118 by 王祖波

好办初始化权限

parent f587c4ad
......@@ -605,13 +605,10 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
public ServiceResponse<Void> flushRightOneTime(String params) {
logger.info("flushRightOneTime 刷新企业内容权限:{}", params);
List<String> enterpriseIds1 = materialEnterpriseAdaptor.queryHasRightEnterpriseIds(MaterialEnterpriseAdaptor.MaterialLevel.LOW.getCode());
// 获取所有开通内容高级版的企业
List<String> enterpriseIds2 = materialEnterpriseAdaptor.queryHasRightEnterpriseIds(MaterialEnterpriseAdaptor.MaterialLevel.HIGH.getCode());
List<String> enterpriseIds = new ArrayList<>();
enterpriseIds.addAll(enterpriseIds1);
enterpriseIds.addAll(enterpriseIds2);
List<String> enterpriseIds = materialEnterpriseAdaptor.queryHasRightEnterpriseIds(MaterialEnterpriseAdaptor.MaterialLevel.LOW.getCode());
// 执行刷新权限
String enterpriseId = "";
if (StringUtils.isNotBlank(params) && !StringUtils.equals("-1", params)) {
......
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