コード例 #1
0
 /**
  * 查询所有导航
  *
  * @return
  */
 @Action(
     value = "findAllSiteNavigationT",
     results = {@Result(name = "json", type = "json")})
 public String findAllSiteNavigationT() {
   if (StaticKey.SC.equals(this.getQtype())) {
     this.findDefaultAllSiteNavigation();
   } else {
     if (Validate.StrisNull(this.getQuery())) {
       return "json";
     } else {
       return "json";
     }
   }
   return "json";
 }
コード例 #2
0
  /**
   * 根据goodsid查询所有评论数据
   *
   * @return
   */
  @Action(
      value = "findAllGoodsCommentListByGoodsId",
      results = {@Result(name = "json", type = "json")})
  public String findAllGoodsCommentListByGoodsId() {
    if (StaticKey.SC.equals(this.getQtype())) {
      this.finddefaultAllGoodsCommentByGoodsId();
    } else {
      if (StringUtils.isBlank(this.getQuery())) {
        return "json";
      } else {

        return "json";
      }
    }
    return "json";
  }
コード例 #3
0
 /** 获取所有商品参数 */
 @Action(
     value = "findAllGoodsAttributeT",
     results = {@Result(name = "json", type = "json")})
 public String findAllGoodsAttributeT() {
   if (StaticKey.SC.equals(this.getQtype())) {
     this.findDefaultAllGoodsAttributeT();
   } else {
     if (Validate.StrisNull(this.getQuery())) {
       return "json";
     } else {
       if (this.getQtype().equals("goodsTypeName")) {
         findGoodsAttributeByParams();
       }
       return "json";
     }
   }
   return "json";
 }