Examples of Merchant


Examples of com.eatle.persistent.pojo.merchant.Merchant

  @Test
  public void test()
  {
    for(int i = 0; i < 800; i++)
    {
      Merchant m = new Merchant();
      m.setMerchantName("谭又中");
      m.setLegalAddress("111");
      m.setLegalHomeAddress("111");
      m.setLegalIdCard("111");
      m.setLegalName("111");
      m.setLegalPhone("111");
      m.setMerchantAddress("111");
      m.setMerchantEmail("111");
      m.setMerchantJoinTime(new Date(new java.util.Date().getTime()));
      m.setMerchantName("111");
      m.setMerchantPhone("111");
      System.out.println(merchantService.add(m));
    }
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.merchant.Merchant

          // 保存文件
          String saveName = ServletActionContext.getServletContext()
              .getRealPath(path) + File.separator + uuidName;
          ImageUtil.thumbnails(logo[i], new File(saveName), 70);
          // 更新商家LogoUrl
          Merchant merchant = merchantService.findById(id);
          String oldLogoPath = ServletActionContext.getServletContext()
              .getRealPath(merchant.getMerchantLogoUrl());
          File oldLogoFile = new File(oldLogoPath == null ? "" : oldLogoPath);
          if (oldLogoFile.exists())
          {
            oldLogoFile.delete();
          }
          merchant.setMerchantLogoUrl(path + "/" + uuidName);
          merchantService.update(merchant);
        }
      }
      else
      {
View Full Code Here

Examples of com.lgx8.management.entities.Merchant

  @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

Examples of com.lgx8.management.entities.Merchant

  @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

Examples of com.lgx8.management.entities.Merchant

    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);
      rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
View Full Code Here

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

Examples of com.lgx8.management.entities.Merchant

    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

Examples of com.lgx8.management.entities.Merchant

    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

Examples of com.lgx8.management.entities.Merchant

      {
       
      }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

Examples of com.lgx8.management.entities.Merchant

      {
       
      }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
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.