/**
   * @param username
   * @param password
   * @return @Description:用户查询 @Author:zhangnan#symdata @Since:2015年9月6日 下午8:11:16 @Version:1.0
   */
  @RequestMapping(value = "/queryUser", method = RequestMethod.POST)
  public TransDto login(String username) throws DatabaseException {
    TransDto dto = new TransDto();
    UserDto userDto = null;

    if (!StringUtils.isNotBlank(username)) {
      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;
    }
    userDto = remoteInterface.remoteLogin(user, username);
    dto.setDefaultSuccess(userDto);
    return dto;
  }