Examples of Merchant


Examples of com.lgx8.management.entities.Merchant

    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

Examples of com.lgx8.management.entities.Merchant

    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

Examples of com.lgx8.management.entities.Merchant

    }
    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

Examples of com.lgx8.management.entities.Merchant

    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

Examples of com.lgx8.management.entities.Merchant

    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

Examples of com.lgx8.management.entities.Merchant

  @RequestMapping("/loadmerchantxx.do")
  public String updateMerchatXX(HttpServletRequest request,HttpServletResponse response){
    RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
    if(rtUser!=null){
      long _mid = rtUser.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      System.out.println(_mid+">>>>>>>>>>>>>>>>>>>");
      request.setAttribute("merchant", _m);
    }
    return "/management/merchant/update_merchant";
  }
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    String sfshsm = request.getParameter("sfshsm");
    String sj_yykssj = request.getParameter("sj_yykssj");
    String sj_yyjssj = request.getParameter("sj_yyjssj");
    String sjfwxj = request.getParameter("sjfwxj");
    int _mid = id==null?0:Integer.parseInt(id);
    Merchant mr = merchantDao.getMerchantById(_mid);
    if(mr!=null){
      mr.setSJDZ(sjdz);
      mr.setSJDHHM(sjdh);
      mr.setSFSHSM(sfshsm);
      mr.setYYKSSJ(sj_yykssj);
      mr.setYYJSSJ(sj_yyjssj);
      mr.setSJFWXJ(sjfwxj);
      merchantDao.updateMerchant(mr);
      request.setAttribute("merchant", mr);
    }
    return "/management/merchant/result_merchant";
  }
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    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==4||_type==5){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0&&_type!=0&&_type!=1&&_type!=3){
      User u = new User();
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

    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==4||_type==5){
        Organization _or = (Organization)userOrganizationMerchantService.getOrganizationOrMerchantByUser(rtUser);
        if(_or!=null){
          _orid = _or.getID();
        }
      }
    }
    if(_orid!=0){
      String hql = "";
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

  @RequestMapping("/initmerchantdmxx.do")
  public String initProuctPage(HttpServletRequest request,HttpServletResponse response) {
    RunTimeUser rt = RunTimeUser.getRunTimeUser(request);
    if(rt!=null){
      long _mid = rt.getOrganizationid();
      Merchant _m = merchantDao.getMerchantById(_mid);
      request.setAttribute("merchant", _m);
    }
    return "/management/merchant/create_merchant_dmxx";
  }
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.