Commit 844ec7b3 by guojuxing

权限项操作修复

parent a57efe7f
......@@ -104,6 +104,9 @@ public class MenuServiceImpl implements MenuService {
@Override
public List<TabSysMenu> selectByIds(List<Integer> menuIdList) {
if (CollectionUtils.isNotEmpty(menuIdList)) {
return new ArrayList<>();
}
return tabSysMenuMapper.selectByIds(menuIdList);
}
......
......@@ -962,7 +962,7 @@ public class MenuApiServiceImpl implements MenuApiService {
//已配置的操作项需要权限控制
for (MenuDTO menuDTO : operationItemListOfAuthItem) {
if (!operationItemMap.containsKey(menuDTO.getMenuId()) || StringUtils.isBlank(versionCode)
|| menuDTO.getMenuVersion().contains("_" + versionCode + "_")) {
|| !menuDTO.getMenuVersion().contains("_" + versionCode + "_")) {
//如果不存在,或者操作项的版本不对
//则是没有权限的操作项
resultList.add(menuDTO);
......
......@@ -9,6 +9,7 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.gic.auth.constant.LoginUserTypeEnum;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.LogManager;
......@@ -64,8 +65,11 @@ public class LoginController {
} else {
List<Integer> idList = new ArrayList<>();
for (UserDTO userDTO : result) {
//gic管理员,不查询运营实施
if (userDTO.getLoginType().intValue() == LoginUserTypeEnum.GIC_USER.getCode()) {
idList.add(userDTO.getEnterpriseId());
}
}
ServiceResponse<List<EnterpriseDTO>> serviceResponse = this.enterpriseApiService
.listEnterpriseByIds(idList);
if (serviceResponse.isSuccess()) {
......
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