Package com.lgx8.gateway.servlet

Examples of com.lgx8.gateway.servlet.GatewayPartnerServlet


    if(hd_lx!=null&&hd_lx.length()!=0&&!hd_lx.equals("")){
      sb.append(" and dhlx='"+hd_lx+"'");
    }
   
    sb.append(" and dhzt='0'");
    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;
View Full Code Here


    }
   
    if(hd_zt!=null&&hd_zt.length()!=0&&!hd_zt.equals("")){
      sb.append(" and dhzt='"+hd_zt+"'");
    }
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
   
    if(rtUser!=null&&rtUser.getUsertype()!=User.USER_TYPE_NORMAL){
      String hql = "";
      if(rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
        long _mid = rtUser.getOrganizationid();
        hql = "from ChargeIndex where ifnull(deleteflag,'0')='0' and merchantid="+_mid+sb.toString()+" order by dhtjrq desc";
      }else if(rtUser.getUsertype()!=User.USER_TYPE_GSYG&&rtUser.getUsertype()!=User.USER_TYPE_MERCHANT){
        long _orid = rtUser.getOrganizationid();
        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);
View Full Code Here

    return null;
  }
 
  @RequestMapping("/rebate/hdtjinit.do")
  public String hdtjInitPage(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()!=User.USER_TYPE_GSYG&&rtUser.getUsertype()!=User.USER_TYPE_NORMAL){
      if(rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
        Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
        request.setAttribute("merchant", _m);
      }else{
        Organization _or = organizationDao.getOrganizationById(rtUser.getOrganizationid());
        request.setAttribute("organization", _or);
      }
    }
    return "/management/rebate/create_hdqb";
  }
View Full Code Here

    return "/management/rebate/create_hdqb";
  }
 
  @RequestMapping("/rebate/hdtjsave.do")
  public String hdtjSavePage(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    String dhjf = request.getParameter("dhqb");
    String dhfs = request.getParameter("dhfs");
    ChargeIndex ci = null;
    if(rtUser!=null&&rtUser.getUsertype()!=User.USER_TYPE_GSYG&&rtUser.getUsertype()!=User.USER_TYPE_NORMAL){
      ci = new ChargeIndex();
      ci.setDhfs(dhfs);
      ci.setDhtjr(rtUser);
      ci.setDhtjrq(new Date());
      ci.setDhjfs(Double.parseDouble(dhjf));
      ci.setDhzt(ChargeIndex.CHARGEINDEX_DHZT_INIT);
      if(rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
        Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
        ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_MERCHANT);
        ci.setMerchantId(_m);
        double qbsl = _m.getFlqb();
        _m.setFlqb(qbsl-Double.parseDouble(dhjf));
        merchantDao.updateMerchant(_m);
      }else{
        Organization _or = organizationDao.getOrganizationById(rtUser.getOrganizationid());
        if(_or.getJGLX().equals("3")){
          ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_TGZ);
        }
        if(_or.getJGLX().equals("4")){
          ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_TGCENTER);
View Full Code Here

  @RequestMapping("/rebate/confirmchargeindex.do")
  public String confirmChargeIndex(HttpServletRequest request,HttpServletResponse response){
    String sysid = request.getParameter("id");
    String confirm = request.getParameter("confirm");
    long id = sysid==null?0l:Long.parseLong(sysid);
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    ChargeIndex ci = null;
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG&&id!=0){
      ci = chargeIndexDao.getChargeIndex(id);
      if(ci!=null){
        String lx = ci.getDhlx();
        if(lx.equals(ChargeIndex.CHARGEINDEX_DHLX_MERCHANT)){
          Merchant _m = ci.getMerchantId();
View Full Code Here

  @Autowired
  RechargeHistoryCountService rechargeHistoryCountService;
 
  @RequestMapping("/recharge/initrecharge.do")
  public String initRechargePage(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      request.setAttribute("merchant", _m);
    }
    return "/management/recharge/create_rechargehistory";
  }
View Full Code Here

    return "/management/recharge/create_rechargehistory";
  }
 
  @RequestMapping("/recharge/initrechargeapply.do")
  public String initRechargePageApply(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      request.setAttribute("merchant", _m);
    }
    return "/management/recharge/create_rechargeapply";
  }
View Full Code Here

    }
    if(qr_ed!=null&&qr_ed.length()!=0){
      sb.append(" and t1.czqdrq <= str_to_date('"+qr_ed+"','%Y-%m-%d %H:%i:%s')");
    }
   
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()!=User.USER_TYPE_NORMAL){
      String hql = "";
      if(rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
        sb.append(" and t1.merchant.id="+rtUser.getOrganizationid());
      }
      if(rtUser.getUsertype()==User.USER_TYPE_TGCENTER||rtUser.getUsertype()==User.USER_TYPE_YYCENTER){
        sb.append(" and t1.merchant.organization.id="+rtUser.getOrganizationid());
      }
     
      if(sb.toString()!=null&&!sb.toString().equals("")){
        hql = " from Rechargehistory t1 where "+sb.toString().substring(4)+" order by t1.CZSJ desc";
      }else{
View Full Code Here

   
    if(czzt!=null&&czzt.length()!=0){
      sb.append(" and czzt="+czzt);
    }
   
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_GSYG){
      String hql = "";
        hql = "from Rechargehistory where ifnull(deleteflag,'0')='0' "+sb.toString()+" order by czsj desc";
      PageList list = rechargehistoryDao.listRechargehistoryByConditions(hql, new Object[]{}, pr);
      printJSON(response, list.toJSON());
    }
View Full Code Here

    return null;
  }
 
  @RequestMapping("/recharge/saverechargehistory.do")
  public String saveRechargeHistory(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    String czje = request.getParameter("czje");
    String czjf = "";
    String[] is_nore = request.getParameterValues("is_nore");
    if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setRESERVATION01(Rechargehistory.RECHARGEHISTORY_CZLX_SDCZ);
View Full Code Here

TOP

Related Classes of com.lgx8.gateway.servlet.GatewayPartnerServlet

Copyright © 2018 www.massapicom. 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.