Commit bf267533 by songyinghui

feat: 好办权限初始化

parent b0a5fc2f
......@@ -608,11 +608,11 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
List<String> enterpriseIds = materialEnterpriseAdaptor.queryHasRightEnterpriseIds(MaterialEnterpriseAdaptor.MaterialLevel.HIGH.getCode());
// 执行刷新权限
String enterpriseId = "";
if (StringUtils.isNotBlank(params) && StringUtils.equals("-1", params)) {
if (StringUtils.isNotBlank(params) && !StringUtils.equals("-1", params)) {
enterpriseId = params;
}
for (String tempId : enterpriseIds) {
if (StringUtils.isNotBlank(tempId) && !StringUtils.equalsIgnoreCase(enterpriseId, tempId)) {
if (StringUtils.isNotBlank(enterpriseId) && !StringUtils.equalsIgnoreCase(enterpriseId, tempId)) {
logger.info("当前企业:{} 不是目标企业:{}, 忽略", tempId, enterpriseId);
continue;
}
......
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