Package com.lgx8.management.entities

Examples of com.lgx8.management.entities.Merchant


    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){
      Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
      Rechargehistory rechargeh = new Rechargehistory();
      rechargeh.setCZYHBH(rtUser);
      rechargeh.setCZSJ(new Date());
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
      rechargeh.setCZJE(Double.parseDouble(czje==null?"0":czje));
View Full Code Here


    int curPage = Integer.parseInt(str_curPage==null?"1":str_curPage);
    User user = RunTimeUser.getRunTimeUser(request);
    if(user.getUsertype()==User.USER_TYPE_MERCHANT){
      long m_id = user.getOrganizationid();
      if(m_id!=0){
        Merchant m = merchantDao.getMerchantById(m_id);
        name = m.getSJMC();
      }
    }
    List<RechargeHistoryCount> list = rechargeHistoryCountService.getRechargeHistoryCount(name, st_time, ed_time, curPage-1);
    int count = rechargeHistoryCountService.getRechargeHistoryCountPageCount(name, st_time, ed_time);
    request.setAttribute("list", list);
View Full Code Here

    if(merchantId == null || "".equals(merchantId))
    {
      merchantId = "0";
    }
   
    Merchant merchant = merchantDao.getMerchantById(Long.parseLong(merchantId));
   
    root.put("merchant", merchant);
   
    IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
    List<ProductVO> productVOs = gatewayService.initGatewayInfo(GatewayConstants.CST_SJYMGG);
View Full Code Here

      {
       
      }else if(detail.getType() == 6)
      {
        //商家
        Merchant mc =  detail.getEntityId() == null ? null : merchantDao.getMerchantById(Long.parseLong(detail.getEntityId()));
        if(mc != null)
        {
          vo.setUrl("merchant/"+mc.getID()+".html");
        }
       
        if(!"".equals(detail.getUrl()) && !"null".equals(detail.getUrl()) && detail.getUrl() != null)
        {
          vo.setUrl(detail.getUrl());
View Full Code Here

      {
       
      }else if(detail.getType() == 6)
      {
        //商家
        Merchant mc = detail.getEntityId() == null? null:merchantDao.getMerchantById(Long.parseLong(detail.getEntityId()));
        if(mc != null)
        {
          vo.setUrl("");
        }
       
View Full Code Here

    long _orid = 0;
    long _type = 0l;
    if(rtUser!=null){
      _type = rtUser.getUsertype();
      if(_type==2){
        Merchant _or = (Merchant)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
      if(_type==3){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0){
      String hql = "";
View Full Code Here

    long _orid = 0;
    long _type = 0l;
    if(rtUser!=null){
      _type = rtUser.getUsertype();
      if(_type==2){
        Merchant _or = (Merchant)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
      if(_type==3){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0){
      User user = new User();
View Full Code Here

    }
    long _type = 0l;
    if(rtUser!=null){
      _type = rtUser.getUsertype();
      if(_type==User.USER_TYPE_MERCHANT){
        Merchant _or = (Merchant)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          sb.append(" and t1.merchant.id="+_or.getID());
        }
      }
     
      if(_type==User.USER_TYPE_TGSTATION){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          sb.append(" and t1.xfhy.organizationid="+_or.getID());
        }
      }
      /**
       * 当推广中心和运营中心查询下属联盟店家的消费信息
       */
      if(_type==User.USER_TYPE_TGCENTER||_type==User.USER_TYPE_YYCENTER){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          sb.append(" and t1.merchant.organization.id="+_or.getID());
        }
      }
     
      String hql = "";
      Object[] o = new Object[]{};
View Full Code Here

    String name = request.getParameter("name");
    User u = RunTimeUser.getRunTimeUser(request);
    if(u.getUsertype()==User.USER_TYPE_MERCHANT){
      long m_id = u.getOrganizationid();
      if(m_id!=0){
        Merchant m = merchantDao.getMerchantById(m_id);
        name = m.getSJMC();
      }
    }
    String st_time = request.getParameter("st_time");
    String ed_time = request.getParameter("ed_time");
    String str_curPage = request.getParameter("curPage");
View Full Code Here

    if(cardNum!=null||cardNum.equals("")){
      request.setAttribute("custmerxf", null);
    }
    //long _orid = 0;
    long _type = 0l;
    Merchant _m = null;
    Custmerxf _xf = null;
    if(rtUser!=null){
      _type = rtUser.getUsertype();
      if(_type==2){
        _m = (Merchant)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
View Full Code Here

TOP

Related Classes of com.lgx8.management.entities.Merchant

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.