Commit 8f052e2b by guojuxing

应用版本菜单如果没有版本号数据,进行判空逻辑

parent 80a4346f
......@@ -235,9 +235,11 @@ public class MenuController {
vo.setOperationItemIds(tempItemIds.substring(0, tempItemIds.length() - 1));
}
} else {
String menuVersion = dto.getMenuVersion().substring(1, dto.getMenuVersion().length() - 1);
vo.setMenuVersion(menuVersion.replaceAll(SignConstants.UNDERLINE, SignConstants.COMMA));
vo.setMap(getMenuVersionMap(result.getResult()));
if (StringUtils.isNotBlank(dto.getMenuVersion())) {
String menuVersion = dto.getMenuVersion().substring(1, dto.getMenuVersion().length() - 1);
vo.setMenuVersion(menuVersion.replaceAll(SignConstants.UNDERLINE, SignConstants.COMMA));
vo.setMap(getMenuVersionMap(result.getResult()));
}
}
return RestResponse.success(vo);
}
......
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