|
|
package com.yoho.activity.queue.convert;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
...
|
...
|
@@ -36,6 +37,10 @@ public class DrawlineUserQueueConvert { |
|
|
if (null == drawlineUserQueueList) {
|
|
|
return null;
|
|
|
}
|
|
|
Map<Integer, Integer> uidAndSortMap = new HashMap<>();
|
|
|
for (DrawlineUserQueue drawlineUserQueue : drawlineUserQueueList){
|
|
|
uidAndSortMap.put(drawlineUserQueue.getUid(), drawlineUserQueue.getSort());
|
|
|
}
|
|
|
List<DrawlineUserQueueRespBO> drawlineUserQueueRespBOList = new ArrayList<DrawlineUserQueueRespBO>();
|
|
|
DrawlineUserQueueRespBO drawlineUserQueueRespBO;
|
|
|
DrawlineLuckyUser drawlineLuckyUser;
|
...
|
...
|
@@ -52,6 +57,9 @@ public class DrawlineUserQueueConvert { |
|
|
drawlineLuckyUser = drawlineLuckyUserMap.get(String.valueOf(uid) + "_" + String.valueOf(userType));
|
|
|
userBaseRspBO = userBaseRspBOMap.get(uid);
|
|
|
drawlineVirtualUser = drawlineVirtualUserMap.get(uid);
|
|
|
if (!uidAndSortMap.get(drawlineUserQueue.getUid()).equals(drawlineUserQueue.getSort())){
|
|
|
drawlineVirtualUser = null;
|
|
|
}
|
|
|
drawlineUserQueueRespBO = toBOByDO(drawlineUserQueue, drawlineLuckyUser, userBaseRspBO, drawlineVirtualUser);
|
|
|
if (null == drawlineUserQueueRespBO) {
|
|
|
continue;
|
...
|
...
|
|