/**
   * 查询入/出库单集合.
   *
   * @param maps
   * @return 入/出库单集合
   */
  @SuppressWarnings("unchecked")
  public List<StoredCardStock> selectCardStockByParameters(Map<String, Object> maps, Page page) {
    Long totalResultSize =
        (Long) super.queryForObject("STORED_CARD_STOCK.selectCardStockCountByParameters", maps);

    // 分页查询
    page.setTotalResultSize(totalResultSize);
    maps.put("startRows", page.getStartRows());
    maps.put("endRows", page.getEndRows());
    return (List<StoredCardStock>)
        super.queryForList("STORED_CARD_STOCK.selectCardStockByParameters", maps);
  }
 /**
  * 已审核(审核通过、审核不通过)房价变价列表页面.
  *
  * @return
  */
 @Action("ebkRouteStockList")
 public String ebkRouteStockList() {
   this.initSuggestAuditStatusList(true);
   Map<String, Object> params = new HashMap<String, Object>();
   // 申请状态查询条件:为空或全部时查询"审核通过"、"审核不通过".
   if (StringUtils.isEmpty(this.ebkHousePrice.getStatus())
       || "ALL".equals(this.ebkHousePrice.getStatus())) {
     params.put(
         "includeAduitStatus",
         new String[] {
           Constant.EBK_SUGGEST_AUDIT_STATUS.PASSED_AUDIT.name(),
           Constant.EBK_SUGGEST_AUDIT_STATUS.UNPASSED_AUDIT.name()
         });
   } else {
     params.put("status", this.ebkHousePrice.getStatus());
   }
   // 申请单号
   if (this.ebkHousePrice.getHousePriceId() != null) {
     params.put("housePriceId", this.ebkHousePrice.getHousePriceId());
   }
   // 提交时间.
   if (this.createTimeBegin != null && !StringUtils.isEmpty(this.createTimeBegin)) {
     params.put("createTimeBegin", this.createTimeBegin);
   }
   if (this.createTimeEnd != null && !StringUtils.isEmpty(this.createTimeEnd)) {
     params.put("createTimeEnd", this.createTimeEnd);
   }
   // 提交人.
   if (this.ebkHousePrice.getSubmitUser() != null
       && !StringUtils.isEmpty(this.ebkHousePrice.getSubmitUser())) {
     params.put("submitUser", this.ebkHousePrice.getSubmitUser().trim());
   }
   // 供应商名称.
   if (this.ebkHousePrice.getSupplierId() != null) {
     params.put("supplierId", this.ebkHousePrice.getSupplierId());
   }
   params.put("productType", Constant.PRODUCT_TYPE.ROUTE.name());
   params.put("applyType", Constant.EBK_HOUSE_PRICE_APPLY_TYPE.STOCK_APPLY.name());
   this.ebkHousePricePage.setTotalResultSize(
       this.ebkHousePriceService.countEbkHousePriceListByExample(params));
   ebkHousePricePage.buildUrl(getRequest());
   ebkHousePricePage.setCurrentPage(this.page);
   params.put("start", ebkHousePricePage.getStartRows());
   params.put("end", ebkHousePricePage.getEndRows());
   params.put("orderby", "CREATE_TIME");
   params.put("order", "DESC");
   this.ebkHousePriceList = this.ebkHousePriceService.findEbkHousePriceListByExample(params);
   this.ebkHousePricePage.setItems(this.ebkHousePriceList);
   return "ebkRouteStockList";
 }
 /**
  * 待审核线路库存变更列表页面.
  *
  * @return
  */
 @Action("ebkRouteStockApplyList")
 public String ebkRouteStockApplyList() {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("status", Constant.EBK_SUGGEST_AUDIT_STATUS.WAITING_FOR_AUDIT.name());
   if (this.ebkHousePrice.getHousePriceId() != null) {
     params.put("housePriceId", this.ebkHousePrice.getHousePriceId());
   }
   // 提交时间开始.
   if (this.createTimeBegin != null && !StringUtils.isEmpty(this.createTimeBegin)) {
     params.put("createTimeBegin", this.createTimeBegin);
   }
   // 提交时间结束
   if (this.createTimeEnd != null && !StringUtils.isEmpty(this.createTimeEnd)) {
     params.put("createTimeEnd", this.createTimeEnd);
   }
   // 提交人.
   if (this.ebkHousePrice.getSubmitUser() != null
       && !StringUtils.isEmpty(this.ebkHousePrice.getSubmitUser())) {
     params.put("submitUser", this.ebkHousePrice.getSubmitUser().trim());
   }
   // 供应商名称.
   if (this.ebkHousePrice.getSupplierId() != null) {
     params.put("supplierId", this.ebkHousePrice.getSupplierId());
   }
   params.put("productType", Constant.PRODUCT_TYPE.ROUTE.name());
   params.put("applyType", Constant.EBK_HOUSE_PRICE_APPLY_TYPE.STOCK_APPLY.name());
   this.ebkHousePricePage.setTotalResultSize(
       this.ebkHousePriceService.countEbkHousePriceListByExample(params));
   ebkHousePricePage.buildUrl(getRequest());
   ebkHousePricePage.setCurrentPage(this.page);
   params.put("start", ebkHousePricePage.getStartRows());
   params.put("end", ebkHousePricePage.getEndRows());
   params.put("orderby", "CREATE_TIME");
   params.put("order", "DESC");
   this.ebkHousePriceList = this.ebkHousePriceService.findEbkHousePriceListByExample(params);
   this.ebkHousePricePage.setItems(this.ebkHousePriceList);
   return "ebkRouteStockApplyList";
 }