Authored by bblu

bug修改

... ... @@ -6,6 +6,7 @@ import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... ... @@ -136,11 +137,14 @@ public class TimeTaskServiceImpl implements ITimeTaskService {
}
// (2)获取白名单排队列表,并用作最终中奖的排队列表
List<DrawlineUserQueue> drawlineUserQueueList = new ArrayList<DrawlineUserQueue>();
String whileList = drawlinePrizeSetting.getWhiteList();
List<DrawlineUserQueue> drawlineUserQueueList = drawlineUserQueueDAO.selectRealUserQueueByActIdAndUids(id, whileList);
logger.debug("luckyDraw: drawlineUserQueueDAO.selectRealUserQueueByActIdAndUids. activityId is {}, uids is {}", id, whileList);
if (null == drawlineUserQueueList) {
drawlineUserQueueList = new ArrayList<DrawlineUserQueue>();
if (StringUtils.isNotEmpty(whileList)) {
drawlineUserQueueList = drawlineUserQueueDAO.selectRealUserQueueByActIdAndUids(id, whileList);
logger.debug("luckyDraw: drawlineUserQueueDAO.selectRealUserQueueByActIdAndUids. activityId is {}, uids is {}", id, whileList);
if (null == drawlineUserQueueList) {
drawlineUserQueueList = new ArrayList<DrawlineUserQueue>();
}
}
// (3)获取真实用户中奖数量,中奖排队列表,并加入到最终中奖的排队列表中
... ... @@ -264,8 +268,8 @@ public class TimeTaskServiceImpl implements ITimeTaskService {
logger.info("Leave LuckyUserNotice service: result is{}", res);
return res;
}
public void shutdownLuckyUserNotice(){
public void shutdownLuckyUserNotice() {
logger.info("Enter shutdownLuckyUserNotice");
// 关闭定时任务线程
... ...