/**
  * [获取财富账户明细列表-支持分页]
  *
  * @param financeAccountDetailCriteria [财富账户明细查询条件封装实例]
  * @return
  * @throws Exception
  */
 public EasyUiPagerResult getFinanceAccountDetailWithPage(
     FinanceAccountDetailCriteria financeAccountDetailCriteria) throws Exception {
   // 申明变量
   EasyUiPagerResult result = null;
   List<FinanceAccountDetail> list = null;
   Integer num = 0;
   // 判断参数合法性
   if (null == financeAccountDetailCriteria) {
     throw new ParamErrorException(ServiceErrorCodeConstant.E0042);
   } else {
     result = new EasyUiPagerResult();
     list = this.financeDao.selectFinanceAccountDetailWithPage(financeAccountDetailCriteria);
     num = this.financeDao.countFinanceAccountDetailWithPage(financeAccountDetailCriteria);
     result.setTotal(num);
     result.setRows(list);
     // 如果需要加载用户信息
     if (YesOrNoEnum.YES.getCode().equals(financeAccountDetailCriteria.getRequirePassport())) {
       for (int i = 0; i < list.size(); i++) {
         Passport passport = null;
         passport = this.hibernateTemplate.get(Passport.class, list.get(i).getPassportId());
         list.get(i).setPassport(passport);
       }
     }
   }
   return result;
 }
 /**
  * [获取财富账户列表-支持分页]
  *
  * @param financeAccountCriteria [财富账户查询条件封装实例]
  * @return
  * @throws Exception
  */
 public EasyUiPagerResult getFinanceAccountWithPage(FinanceAccountCriteria financeAccountCriteria)
     throws Exception {
   // 申明变量
   EasyUiPagerResult result = null;
   List<FinanceAccount> list = null;
   Integer num = 0;
   // 判断参数合法性
   if (null == financeAccountCriteria) {
     throw new ParamErrorException(ServiceErrorCodeConstant.E0037);
   } else {
     result = new EasyUiPagerResult();
     list = this.financeDao.selectFinanceAccountWithPage(financeAccountCriteria);
     num = this.financeDao.countFinanceAccountWithPage(financeAccountCriteria);
     result.setTotal(num);
     result.setRows(list);
   }
   return result;
 }