...
|
...
|
@@ -8,7 +8,6 @@ import java.util.HashMap; |
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
...
|
...
|
@@ -52,9 +51,6 @@ public class AddVirtualUserTimer { |
|
|
//各个活动下,待进入排队的马甲
|
|
|
Map<Integer, List<DrawlineVirtualUser>> waitAddUserMap = new HashMap<Integer, List<DrawlineVirtualUser>>();
|
|
|
|
|
|
//各个活动下,已经进入排队的马甲(该变量可以去掉了)
|
|
|
// Map<Integer, DrawlineVirtualUser> alreadyAddUserMap = null;
|
|
|
|
|
|
//所有的活动
|
|
|
List<DrawlineActivity> activityList = null;
|
|
|
|
...
|
...
|
@@ -67,8 +63,13 @@ public class AddVirtualUserTimer { |
|
|
/**
|
|
|
* 初始化一些参数
|
|
|
*/
|
|
|
@PostConstruct
|
|
|
public void init() {
|
|
|
|
|
|
waitAddUserMap = new HashMap<Integer, List<DrawlineVirtualUser>>();
|
|
|
activityList = new ArrayList<DrawlineActivity>();
|
|
|
activityIdList = new ArrayList<Integer>();
|
|
|
first = new HashMap<Integer, Boolean>();
|
|
|
|
|
|
//初始化所有活动
|
|
|
activityList = drawlineActivityDAO.selectAllActivity();
|
|
|
|
...
|
...
|
@@ -112,6 +113,9 @@ public class AddVirtualUserTimer { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
//初始化数据
|
|
|
init();
|
|
|
|
|
|
//没有活动,直接退出
|
|
|
if (activityList == null || activityList.size() == 0) {
|
|
|
log.info("activityList is empty over");
|
...
|
...
|
|