| | |
| | | } catch (Exception e) { |
| | | String errorMessage = e.getMessage(); |
| | | if (errorMessage.contains("无法解析的成员访问表达式")) { |
| | | throw new ServiceException("缺少" + errorMessage.substring(errorMessage.indexOf("[t.") + 1, errorMessage.indexOf("]")) + "字段"); |
| | | throw new ServiceException("缺少" + errorMessage.substring(errorMessage.indexOf("[T.") + 1, errorMessage.indexOf("]")) + "字段"); |
| | | } |
| | | throw new ServiceException(e.getMessage()); |
| | | } |
| | |
| | | uiInfoVO.setLeaf(classifyService.countChildrenByClassifyOid(codeClassifyOid) == 0); |
| | | if (StringUtils.isNotBlank(functionId) && !"~".equalsIgnoreCase(functionId)) { |
| | | // TODO:2024-1-25 18:42模板上的btmtypeid有时候会存在大小写的问题,按理来说这儿直接用functionId就能满足查询菜单按钮了uiInfoVO.getTemplateVO().getBtmTypeId() |
| | | List<Menu> buttonVOS = iSysClient.getMenuButtonByType(codeClassifyOid, functionId, "data_auth").getData(); |
| | | R<List<Menu>> buttonListR = iSysClient.getMenuButtonByType(codeClassifyOid, functionId, "data_auth"); |
| | | if(!buttonListR.isSuccess()){ |
| | | throw new ServiceException("获取按钮授权列表失败,原因:"+buttonListR.getMsg()); |
| | | } |
| | | List<Menu> buttonVOS = buttonListR.getData(); |
| | | |
| | | List<SmOperationVO> operationVOS = new ArrayList<>(); |
| | | if (!CollectionUtils.isEmpty(buttonVOS)) { |