Package com.eatle.persistent.pojo.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


          // 保存文件
          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

TOP

Related Classes of com.eatle.persistent.pojo.merchant.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.