...
|
...
|
@@ -19,6 +19,7 @@ import org.springframework.scheduling.annotation.Scheduled; |
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import com.yoho.activity.common.enums.UserTypeEnum;
|
|
|
import com.yoho.activity.common.utils.DateUtils;
|
|
|
import com.yoho.activity.common.utils.MapUtil;
|
|
|
import com.yoho.activity.common.utils.MapUtil.FunctionExPlus;
|
|
|
import com.yoho.activity.common.utils.PropertiesUtil;
|
...
|
...
|
@@ -77,7 +78,7 @@ public class AddVirtualUserTimer { |
|
|
//first = new HashMap<Integer, Boolean>();
|
|
|
|
|
|
//初始化所有活动
|
|
|
activityList = drawlineActivityDAO.selectAllActivity();
|
|
|
activityList = drawlineActivityDAO.selectAllActivity(DateUtils.getCurrentTimeSecond());
|
|
|
|
|
|
if (activityList == null || activityList.size() == 0) {
|
|
|
return;
|
...
|
...
|
@@ -143,7 +144,8 @@ public class AddVirtualUserTimer { |
|
|
}
|
|
|
|
|
|
//查询所有的活动,前一分钟内实际增加的真实用户数
|
|
|
List<Map<String, Object>> realUserCountList = drawlineUserQueueDAO.selectRealUserCountByActivityIds(StringUtils.join(activityIdList, ","));
|
|
|
int currTime = DateUtils.getCurrentTimeSecond();
|
|
|
List<Map<String, Object>> realUserCountList = drawlineUserQueueDAO.selectRealUserCountByActivityIds(StringUtils.join(activityIdList, ","), currTime - 60, currTime);
|
|
|
if (realUserCountList == null) {
|
|
|
realUserCountList = new ArrayList<Map<String,Object>>();
|
|
|
}
|
...
|
...
|
|