/** * @Title: getMenu @Description: TODO @Autohr guoxuelian#symdata.cn * * @param @param username * @param @param systemId * @param @return * @param @throws DatabaseException * @return TransDto * @throws 2015年9月14日下午3:48:49 */ @RequestMapping(value = "/menu", method = RequestMethod.POST) public TransDto getMenu(String username, String systemId) throws DatabaseException { TransDto dto = new TransDto(); if (!StringUtils.isNotBlank(username) || !StringUtils.isNotBlank(systemId)) { dto.setError(ErrorCode.ERR1001.getCode(), ErrorCode.ERR1001.getDescription(), null); return dto; } User user = userService.findByUsername(username); if (user == null) { dto.setError(ErrorCode.ERR1002.getCode(), ErrorCode.ERR1002.getDescription(), null); return dto; } List<MenuDto> menuListDto = remoteInterface.getMenu(user, systemId); dto.setDefaultSuccess(menuListDto); return dto; }