...
|
...
|
@@ -20,6 +20,7 @@ import org.springframework.stereotype.Component; |
|
|
import com.yoho.activity.common.enums.UserTypeEnum;
|
|
|
import com.yoho.activity.common.utils.MapUtil;
|
|
|
import com.yoho.activity.common.utils.MapUtil.FunctionExPlus;
|
|
|
import com.yoho.activity.common.utils.PropertiesUtil;
|
|
|
import com.yoho.queue.dal.IDrawlineActivityDAO;
|
|
|
import com.yoho.queue.dal.IDrawlineUserQueueDAO;
|
|
|
import com.yoho.queue.dal.IDrawlineVirtualUserDAO;
|
...
|
...
|
@@ -36,7 +37,7 @@ import com.yoho.queue.dal.model.DrawlineVirtualUser; |
|
|
*
|
|
|
* @author ping.huang 2016年3月5日
|
|
|
*/
|
|
|
//@Component
|
|
|
@Component
|
|
|
public class AddVirtualUserTimer {
|
|
|
|
|
|
static Logger log = LoggerFactory.getLogger(AddVirtualUserTimer.class);
|
...
|
...
|
@@ -105,6 +106,11 @@ public class AddVirtualUserTimer { |
|
|
@Scheduled(fixedDelay = 60 * 1000)
|
|
|
public void run() {
|
|
|
log.info("start add virtuals");
|
|
|
boolean execute = PropertiesUtil.getExecuteTask();
|
|
|
if (!execute) {
|
|
|
log.info("properties is false exit task");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
//没有活动,直接退出
|
|
|
if (activityList == null || activityList.size() == 0) {
|
...
|
...
|
|