Пример #1
0
 public static BeidouTask getBeidouTask(Long id, Long adId, Long groupId, Integer wuliaoType) {
   BeidouTask task = new BeidouTask();
   task.setId(id);
   task.setAdId(adId);
   task.setGroupId(groupId);
   task.setPlanId(DEFAULT_ID.longValue());
   task.setUserId(DEFAULT_ID.longValue());
   task.setWuliaoType(wuliaoType);
   task.setCompany(DEFAULT_COMPANY);
   task.setWebsite(DEFAULT_URL);
   task.setShowUrl(DEFAULT_URL);
   task.setTargetUrl(DEFAULT_URL);
   task.setWidth(DEFAULT_SIZE);
   task.setHeight(DEFAULT_SIZE);
   task.setTitle(DEFAULT_TITLE);
   task.setDescription1(DEFAULT_DESCRIPTION);
   task.setDescription2(DEFAULT_DESCRIPTION);
   task.setAdTradeIdLevel2(DEFAULT_TRADE);
   task.setAdTradeIdLevel3(DEFAULT_TRADE);
   task.setAdTag(DEFAULT_TAG_NEW);
   task.setMcId(DEFAULT_ID);
   task.setMcVersionId(DEFAULT_ID);
   task.setPriority(DEFAULT_PRIORITY.intValue());
   task.setSecondPriority(DEFAULT_PRIORITY.intValue());
   task.setModuserLevel(ModuserLevel.OUTSIDE.getId());
   task.setTaskId(DEFAULT_ID);
   task.setTaskName(DEFAULT_TASKNAME);
   task.setAdType(DEFAULT_ADTYPE);
   task.setChatime(new Date());
   task.setTaskType(DEFAULT_TASKTYPE);
   return task;
 }
Пример #2
0
 public static DSPTask getDSPTask(Long id, Long adId, Long groupId, Integer wuliaoType) {
   DSPTask task = new DSPTask();
   task.setId(id);
   task.setAdId(adId);
   task.setUserId(groupId);
   task.setDspId(DEFAULT_ID.longValue());
   task.setDspname(DEFAULT_COMPANY);
   task.setWuliaoType(wuliaoType);
   task.setNickname(DEFAULT_COMPANY);
   task.setWebsite(DEFAULT_URL);
   task.setLandingPage(DEFAULT_URL);
   task.setWidth(DEFAULT_SIZE);
   task.setHeight(DEFAULT_SIZE);
   task.setAdTradeIdLevel2(DEFAULT_TRADE);
   task.setAdTradeIdLevel3(DEFAULT_TRADE);
   task.setAdTag(DEFAULT_TAG_NEW);
   task.setMcId(DEFAULT_ID);
   task.setMcVersionId(DEFAULT_ID);
   task.setPriority(DEFAULT_PRIORITY.intValue());
   task.setSecondPriority(DEFAULT_PRIORITY.intValue());
   task.setModuserLevel(ModuserLevel.OUTSIDE.getId());
   task.setTaskId(DEFAULT_ID);
   task.setTaskName(DEFAULT_TASKNAME);
   task.setChatime(new Date());
   task.setTaskType(DEFAULT_TASKTYPE);
   return task;
 }
Пример #3
0
 public static Task getTask(Integer id, String taskName) {
   Task task = new Task();
   task.setTaskName(taskName);
   task.setId(id);
   task.setModuserLevel(ModuserLevel.OUTSIDE.getId());
   task.setAddTime(new Date());
   task.setAddUser(DEFUALT_ADDUSER);
   task.setStatus(TaskStatus.NOT_STARTED.getId());
   task.setTaskType(DEFAULT_TASKTYPE);
   return task;
 }