/**
  * 更新全局参数
  *
  * @return
  */
 @Action(
     value = "updateGolbalParamBykey",
     results = {@Result(name = "json", type = "json")})
 public String updateGolbalParamBykey() {
   GlobalParamM gm = new GlobalParamM();
   gm.setGkey(GlobalParam.ISSENDACTIVATEMAIL);
   gm.setGvalue(this.getIssendactivatemail());
   int i = this.getGlobalParamServiceImpl().updateGolbalParamByKey(gm);
   gm.setGkey(GlobalParam.STOCKWARNING);
   gm.setGvalue(this.getStockwarning().trim());
   int j = this.getGlobalParamServiceImpl().updateGolbalParamByKey(gm);
   gm.setGkey(GlobalParam.INTEGRALCONVERSIONRATIO);
   gm.setGvalue(this.getIntegralconversionratio().trim());
   int k = this.getGlobalParamServiceImpl().updateGolbalParamByKey(gm);
   gm.setGkey(GlobalParam.MOBILEHOST);
   gm.setGvalue(this.getMobilehost().trim());
   this.getGlobalParamServiceImpl().updateGolbalParamByKey(gm);
   this.setSucflag(true);
   return "json";
 }
 /**
  * 获取所有全局参数
  *
  * @return
  */
 @Action(
     value = "findAllGlobalParam",
     results = {@Result(name = "json", type = "json")})
 public String findAllGlobalParam() {
   List<GlobalParamM> list = this.getGlobalParamServiceImpl().findAllGlobalParam();
   if (list != null) {
     for (Iterator it = list.iterator(); it.hasNext(); ) {
       GlobalParamM gm = (GlobalParamM) it.next();
       if (gm.getGkey().equals(GlobalParam.ISSENDACTIVATEMAIL)) {
         map.put(GlobalParam.ISSENDACTIVATEMAIL, gm.getGvalue());
       }
       if (gm.getGkey().equals(GlobalParam.STOCKWARNING)) {
         map.put(GlobalParam.STOCKWARNING, gm.getGvalue());
       }
       if (gm.getGkey().equals(GlobalParam.INTEGRALCONVERSIONRATIO)) {
         map.put(GlobalParam.INTEGRALCONVERSIONRATIO, gm.getGvalue());
       }
       if (gm.getGkey().equals(GlobalParam.MOBILEHOST)) {
         map.put(GlobalParam.MOBILEHOST, gm.getGvalue());
       }
     }
   }
   return "json";
 }