/** 更新商品分类的静态页路径 */
 public void updateGoodsCategoryhtmlpath() {
   List<GoodsCategoryT> list = this.getGoodsCategoryTService().findGoodsCategoryByGrade("0", "1");
   for (Iterator it = list.iterator(); it.hasNext(); ) {
     GoodsCategoryT gct = (GoodsCategoryT) it.next();
     List<GoodsCategoryT> glist =
         this.getGoodsCategoryTService().findGoodscategoryByparentId("1", gct.getParentId());
     if (glist.isEmpty()) {
       this.getGoodsCategoryTService().updateHtmlPath(gct.getParentId(), "");
     }
   }
 }
 /**
  * 获取系统内容,包含文章分类,和商品分类的预先读取,可能还有更多的内容,或许会做一个更加多选的页面来描述系统内容,让后绑定模板
  *
  * @return
  */
 @Action(
     value = "findSystemcontent",
     results = {@Result(name = "json", type = "json")})
 public String findSystemcontent() {
   List<GoodsCategoryT> gclist =
       this.getGoodsCategoryTService().findAllGoodsCategoryBycreatorid(BaseTools.adminCreateId());
   List<ArticleCategoryT> aclist =
       this.getArticleCategoryTService()
           .findAllArticleCategoryBycreatorid(BaseTools.adminCreateId());
   // 组织商品分类的所有信息
   this.setSyscontentstrs("");
   this.setSyscontentstrs(
       "<option value='-1'>---请选择---</option><option value='0'>--自定义系统内容--</option><option value='1'>--以下是所创建的商品分类--</option>");
   if (!gclist.isEmpty()) {
     for (Iterator<GoodsCategoryT> it = gclist.iterator(); it.hasNext(); ) {
       GoodsCategoryT gct = (GoodsCategoryT) it.next();
       if (gct.getGrade().equals("0")) {
         this.syscontentstrs +=
             "<option value='"
                 + gct.getGoodsCategoryTid()
                 + ","
                 + gct.getSign()
                 + "'>"
                 + gct.getName()
                 + "</option>";
       } else if (gct.getGrade().equals("1")) {
         this.syscontentstrs +=
             "<option value='"
                 + gct.getGoodsCategoryTid()
                 + ","
                 + gct.getSign()
                 + "'>&nbsp;&nbsp;"
                 + gct.getName()
                 + "</option>";
       } else {
         this.syscontentstrs +=
             "<option value='"
                 + gct.getGoodsCategoryTid()
                 + ","
                 + gct.getSign()
                 + "'>&nbsp;&nbsp;&nbsp;"
                 + gct.getName()
                 + "</option>";
       }
     }
   }
   if (!aclist.isEmpty()) {
     this.syscontentstrs += "<option value='2'>--以下是所创建的文章分类--</option>";
     for (Iterator<ArticleCategoryT> it = aclist.iterator(); it.hasNext(); ) {
       ArticleCategoryT act = (ArticleCategoryT) it.next();
       if (act.getGrade().equals("0")) {
         this.syscontentstrs +=
             "<option value='"
                 + act.getArticleCategoryTid()
                 + ","
                 + act.getSign()
                 + "'>"
                 + act.getName()
                 + "</option>";
       } else if (act.getGrade().equals("1")) {
         this.syscontentstrs +=
             "<option value='"
                 + act.getArticleCategoryTid()
                 + ","
                 + act.getSign()
                 + "'>&nbsp;&nbsp;"
                 + act.getName()
                 + "</option>";
       } else {
         this.syscontentstrs +=
             "<option value='"
                 + act.getArticleCategoryTid()
                 + ","
                 + act.getSign()
                 + "'>&nbsp;&nbsp;&nbsp;"
                 + act.getName()
                 + "</option>";
       }
     }
   }
   this.setSucflag(true);
   return "json";
 }