Package com.lgx8.common

Examples of com.lgx8.common.PageList.toJSON()


    }
    String orderIdStr = request.getParameter("orderId");
    if(orderIdStr==null||"".equals(orderIdStr.trim())){
      String hql = " from Orders o where o.user.id = ? and o.status!="+Orders.STATUS_CART;
      PageList pageList = orderService.queryOrders(hql, new Object[]{currentUser.getId()}, getPageInfo(request));
      this.printJSON(response, pageList.toJSON());
      return null;
    }
    if(!isNumber(orderIdStr)){
      this.printJSON(response, (new PageList()).toJSON());
      return null;
View Full Code Here


      return null;
    }
    long id = Long.parseLong(orderIdStr.trim());
    String hql = " from Orders o where o.user.id = ? and o.id=? and o.status!="+Orders.STATUS_CART;
    PageList pageList = orderService.queryOrders(hql, new Object[]{currentUser.getId(),id}, getPageInfo(request));
    this.printJSON(response, pageList.toJSON());
    return null;
  }
 
 
  /**
 
View Full Code Here

    if(mobile!=null&&!"".equals(mobile.trim())){
      hql += " and a.tel like ?";
      list.add("%"+mobile+"%");
    }
    PageList pageList = addressService.queryAddress(hql, list.toArray(), getPageInfo(request));
    this.printJSON(response, pageList.toJSON());
    return null;
  }
 
  /**
   * 删除我的收货地址
 
View Full Code Here

    form.setFromDate(fromDate);
    form.setToDate(toDate);
    RunTimeUser currentUser = RunTimeUser.getRunTimeUser(request);
    PageArgument argment = this.getPageInfo(request);
    PageList pageList = accountDetailService.queryAccountDetails(currentUser, argment, form);
    this.printJSON(response, pageList.toJSON());
    return null;
  }
 
  /**
   * 修改个人密码
 
View Full Code Here

      hql += " and ad.tpmx like ?";
      parameters.add("%"+description+"%");
    }
    PageArgument arg = this.getPageInfo(request);
    PageList pageList = advertisementDao.findByPage4Report(hql, parameters.toArray(), arg.getCurPage(), arg.getPageSize());
    this.printJSON(response, pageList.toJSON());
    return null;
  }
 
  private File fileUpload(MultipartHttpServletRequest multipartRequest,String key,Merchant merchant){
    Map<String,MultipartFile> maps =  multipartRequest.getFileMap();
View Full Code Here

    queryForm.setTGZXMC(tgzx);
    queryForm.setUsertype(_type);
    queryForm.setOrgid(_orid);
    PageArgument pageArgment = getPageInfo(request);
    PageList pageList = merchantDao.listMerchantByConditions(queryForm.toHql(), queryForm.getPara(), pageArgment);
    printJSON(response, pageList.toJSON());
    return null;
  }
 
  @RequestMapping("/merchant/delMerchant.do")
  public ModelAndView delMerchant(HttpServletRequest request,HttpServletResponse response) {
View Full Code Here

    }
    if(rtUser!=null){
      String hql = " from Rebaterule where ifnull(deleteflag,'0')='0' "+sb.toString()+" order by createdtime desc";
      Object[] o = new Object[]{};
      PageList list = rechargeRebateService.getPageListRebateruleByConditions(hql, o, pr);
      printJSON(response, list.toJSON());
    }
    return null;
  }
 
  @RequestMapping("/rebate/modifyrebateruleinit.do")
View Full Code Here

      }else{
        hql = " from Rebate order by flsj desc";
      }
      Object[] o = new Object[]{};
      PageList list = rechargeRebateService.getPageListRebateByConditions(hql, o, pr);
      printJSON(response, list.toJSON());
    }
    return null;
  }
 
  @RequestMapping("/rebate/list_chargeconfirmindex.do")
View Full Code Here

    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
   
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG){
      String hql = "from ChargeIndex where ifnull(deleteflag,'0')='0' "+sb.toString()+" order by dhtjrq desc";
      PageList list = rechargeRebateService.getPageListRebateByConditions(hql, new Object[]{}, pr);
      printJSON(response, list.toJSON());
    }
    return null;
  }
 
  @RequestMapping("/rebate/list_chargeindex.do")
View Full Code Here

        hql = "from ChargeIndex where ifnull(deleteflag,'0')='0' and dhorid="+_orid+sb.toString()+" order by dhtjrq desc";
      }else{
        hql = "from ChargeIndex where ifnull(deleteflag,'0')='0' "+sb.toString()+" order by dhtjrq desc";
      }
      PageList list = rechargeRebateService.getPageListRebateByConditions(hql, new Object[]{}, pr);
      printJSON(response, list.toJSON());
    }
    return null;
  }
 
  @RequestMapping("/rebate/hdtjinit.do")
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.