Exemple #1
0
 @Action(
     value = Views.HD_WEDDING,
     results = {@Result(name = SUCCESS, location = VPath.HD_WEDDING)})
 public String toHdWeddingMoreList() {
   try {
     String str = checkPrecondition4HD(7);
     if (str != null) {
       rsp().getWriter().print(str);
       return null;
     }
     rsList = retailStoreService.queryStoreList(belongs_id(), 1);
     if (NullCheck.notNullList(rsList)) {
       brands = carModelService.queryBrands(belongs_id());
       rents = service.queryDatasList(rsList, current, nums);
       total = service.queryTotal(rsList);
       count = total % nums == 0 ? total / nums : total / nums + 1;
     }
   } catch (Exception e) {
     log.error("跳转代驾婚庆业务列表页异常:", e);
   }
   return SUCCESS;
 }
Exemple #2
0
 @Action(
     value = ViewOpr.HD_WEDDING_MORE_UPDATE,
     results = {
       @Result(name = SUCCESS, location = Views.HD_WEDDING, type = REDIRECT_ACTION),
       @Result(name = INPUT, location = Views.HD_WEDDING, type = REDIRECT_ACTION)
     })
 public String hdWeddingMoreUpdate() {
   try {
     if (service.updateHdWeddingRent(rent, insures, subcars)) {
       return SUCCESS;
     }
   } catch (Exception e) {
     log.error("更新代驾婚庆配价异常:", e);
   }
   return SUCCESS;
 }
Exemple #3
0
 @Action(
     value = Views.HD_WEDDING_MORE_UPDATE,
     results = {
       @Result(name = INPUT, location = Views.HD_WEDDING, type = REDIRECT_ACTION),
       @Result(name = SUCCESS, location = VPath.HD_WEDDING_MORE_UPDATE)
     })
 public String toHdWeddingMoreUpdate() {
   try {
     rent = service.queryDataById(current);
     insures = priceInsureService.queryDatas(rent.getId(), 7);
     subcars = hdWeddingMoreService.queryDatasByBelongsId(rent.getId());
     return SUCCESS;
   } catch (Exception e) {
     log.error("跳转代驾婚庆更新页面异常", e);
   }
   return INPUT;
 }
Exemple #4
0
 @Action(
     value = AJAXViews.CHANGE_WEDDING_STAT,
     results = {
       @Result(
           name = JSON_ARRAY,
           type = REDIRECT_JSON,
           params = {"contentType", "text/html", "root", JSON_ARRAY})
     })
 public String ajaxChangeStat() {
   try {
     // qid:1:已上架,0:已下架:8:已删除
     jsonArray = service.changeStat(qid, ids);
   } catch (Exception e) {
     log.error("查询品牌异常:", e);
     jsonArray.add(1);
   }
   return JSON_ARRAY;
 }