예제 #1
0
  /**
   * @author : 林俊钦
   * @date : Mar 19, 2012 12:53:59 PM @Method Description :审核团购
   */
  public String audit() throws Exception {
    String id = this.groupgoods.getGroup_id();

    if (id == null || id.equals("")) {
      groupgoods = new Groupgoods();
    } else {
      groupgoods = this.groupgoodsService.get(id);
    }

    if (groupname == null || groupname.equals("")) {
      goods = this.goodsService.get(groupgoods.getGoods_id());
      if (goods.getGoods_name() != null) {
        groupname = goods.getGoods_name();
      }
    }

    // 将从数据库中查询的所属分类存入分类隐藏域中
    backCategory(groupgoods.getCat_attr());
    return goUrl(AUDIT);
  }
예제 #2
0
  /**
   * 方法描述:根据主键找出团购商品表信息
   *
   * @return
   * @throws Exception
   */
  public String view() throws Exception {
    if (groupgoods.getCust_id() != null) {
      if (accessControl(groupgoods.getCust_id())) {
        return list();
      }
    }
    String id = this.groupgoods.getGroup_id();
    if (id == null || id.equals("")) {
      groupgoods = new Groupgoods();
    } else {
      groupgoods = this.groupgoodsService.get(id);
    }

    if (groupname == null || groupname.equals("")) {
      goods = this.goodsService.get(groupgoods.getGoods_id());
      if (goods != null && goods.getGoods_name() != null) {
        groupname = goods.getGoods_name();
      }
    }

    // 将从数据库中查询的所属分类存入分类隐藏域中
    backCategory(groupgoods.getCat_attr());
    return goUrl(VIEW);
  }