|
|
package com.yoho.activity.queue.convert;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yoho.core.common.helpers.ImagesHelper;
|
|
|
import com.yoho.queue.dal.model.DrawlineActivity;
|
|
|
import com.yoho.queue.dal.model.DrawlineLuckyUser;
|
|
|
import com.yoho.queue.dal.model.DrawlineUserQueue;
|
|
|
import com.yoho.queue.dal.model.DrawlineVirtualUser;
|
|
|
import com.yoho.service.model.activity.drawline.request.DrawlineActivityBo;
|
|
|
import com.yoho.service.model.activity.drawline.response.DrawlineUserQueueRespBO;
|
|
|
import com.yoho.service.model.activity.drawline.response.UserBaseRspBO;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
public class DrawlineQueueConvert {
|
|
|
|
|
|
public static List<DrawlineActivityBo> toBOListByDOList(List<DrawlineActivity> drawlineQueueList) {
|
|
|
if (null == drawlineQueueList) {
|
|
|
return Lists.newArrayList();
|
|
|
}
|
|
|
List<DrawlineActivityBo> list = new ArrayList<>();
|
|
|
for(DrawlineActivity activity : drawlineQueueList){
|
|
|
DrawlineActivityBo bo = new DrawlineActivityBo();
|
|
|
bo.setActivityDesc(activity.getActivityDesc());
|
|
|
bo.setActivityName(activity.getActivityName());
|
|
|
bo.setAwardType(activity.getAwardType());
|
|
|
bo.setBackgroundStyle(activity.getBackgroundStyle());
|
|
|
bo.setBeginTime(activity.getBeginTime());
|
|
|
bo.setCreateTime(activity.getCreateTime());
|
|
|
bo.setEndTime(activity.getEndTime());
|
|
|
bo.setId(activity.getId());
|
|
|
bo.setNumberLimit(activity.getNumberLimit());
|
|
|
bo.setPlatformType(activity.getPlatformType());
|
|
|
bo.setStatus(activity.getStatus());
|
|
|
bo.setTopBanner(activity.getTopBanner());
|
|
|
bo.setUpdateTime(activity.getUpdateTime());
|
|
|
list.add(bo);
|
|
|
}
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|