Example #1
0
  /**
   * 进入某个列表的入口方法 列表方法,也就是查询方法,调用的时候不需要xxxCtrl!list 框架 在不调Ctrl时,不指定方法,就默认为它list,在action中通过
   * json注解,所dto中的pageModel to json
   *
   * @param: res
   */
  public void list(BusinessRequest res) {

    HopIncDto dto = super.getDto(HopIncDto.class, res);
    if (dto.getPageModel() == null) {
      dto.setPageModel(new PagerModel());
    }
    // 调用对应的service方法
    hopIncService.list(dto);
  }
Example #2
0
  // 显示HopIncVo信息,即包括科室表中的指向医院Id对应的医院描述
  public void listInfo(BusinessRequest res) throws Exception {

    HopIncDto dto = super.getDto(HopIncDto.class, res);
    if (dto.getPageModel() == null) {
      dto.setPageModel(new PagerModel());
    }
    // 调用对应的service方法
    hopIncService.getListInfo(dto);
  }