Exemplo n.º 1
0
  /**
   * @MethodDescribe 方法描述 根据主键找出求购表的详细信息
   *
   * @author 创建人 林俊钦
   * @date 创建日期 Aug 1, 2011 1:28:15 PM
   */
  public String audit() throws Exception {

    // 进入审核页面时候的加载方法
    auditView("buy", buy.getBuy_id());

    String infoattr_id = buy.getInfoattr_id();
    sysmodule = this.sysmoduleService.get("buy");
    if (sysmodule != null && "0".equals(sysmodule.getIs_catattr())) {
      backAttr(infoattr_id, buy.getCat_attr());
    }
    noReasonKey = buy.getInfo_state();
    // 获取求购类型,分类和地区的中文字符
    if (buy.getBuy_type() != null) {
      String buy_type = CommparaFuc.get_commparakey_By_value(buy.getBuy_type(), para_code);
      buy.setBuy_type(buy_type);
    }
    if (buy.getCat_attr() != null) {
      String cat_attr = CategoryFuc.getCateNameByMap(buy.getCat_attr());
      buy.setCat_attr(cat_attr);
    }
    if (buy.getArea_attr() != null) {
      String area_attr = AreaFuc.getAreaNameByMap(buy.getArea_attr());
      buy.setArea_attr(area_attr);
    }
    return goUrl(AUDIT);
  }
Exemplo n.º 2
0
 /**
  * @author : 林俊钦
  * @date : Mar 19, 2012 11:30:01 AM @Method Description :审核团购列表
  */
 public String auditList() throws Exception {
   Map pageMap = new HashMap();
   pageMap = setGoodsMap(pageMap);
   pageMap.put("state_in", "0,2");
   // 团购地区过滤
   if ("0".equals(cfg_area_group) && this.session_cust_type.equals(Constants.ADMIN_TYPE)) {
     // 获取地区定位id
     String area_id = AreaFuc.getAreaidByIpaddr(getRequest());
     pageMap.put("area_attr", area_id);
   }
   // 根据页面提交的条件找出信息总数
   int count = this.goodsService.getCount(pageMap);
   // 分页插件
   pageMap = super.pageTool(count, pageMap);
   groupgoodsList = this.groupgoodsService.getList(pageMap);
   groupgoodsList = categoryFuc.replaceList(groupgoodsList, "");
   return goUrl(AUDITLIST);
 }