Examples of Advert


Examples of com.eatle.persistent.pojo.system.frontdata.Advert

  private static IAdvertService advertService  = (IAdvertService) ctx.getBean("advertService");

  @Test
  public void add()
  {
    Advert ad = new Advert();
    ad.setAdvertName("aaa");
    ad.setAdvertType(new Short("1"));
    ad.setAdvertPositionId(1L);
    ad.setAdvertLink("aaa");
    ad.setAdvertEnabled(new Short("1"));
    ad.setAdvertCode("11111111111111111111111111111111111111111");
    ad.setClickCount(222);
    ad.setStartTime(new Date());
    ad.setEndTime(new Date());
    ad.setIssueTime(new Date());
    ad.setLinkMan("谭又中");
    ad.setLinkPhone("13640516157");
    ad.setLinkEmail("453674398@qq.com");
   
    advertService.add(ad);
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.system.frontdata.Advert

  }
 
  @Test
  public void update()
  {
    Advert ad = advertService.findById(1L);
    ad.setEndTime(new Date());
   
    advertService.update(ad);
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.system.frontdata.Advert

  }
 
  @Test
  public void query()
  {
    Advert ad = advertService.findById(1L);
    System.out.println(ad.getAdvertCode());
  }
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.