...
|
...
|
@@ -8,7 +8,6 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.yoho.activity.common.enums.PrizeTypeEnum;
|
|
|
import com.yoho.activity.common.utils.DateUtils;
|
|
|
import com.yoho.activity.queue.service.IActivitySettingService;
|
|
|
import com.yoho.error.exception.ServiceException;
|
...
|
...
|
@@ -45,7 +44,7 @@ public class ActivitySettingServiceImpl implements IActivitySettingService { |
|
|
int activityId = activityReqBO.getActivityId();
|
|
|
if(activityId < 1){
|
|
|
logger.warn("getActivityInfo: activityId is null.");
|
|
|
throw new ServiceException(400, "activityId is null");
|
|
|
throw new ServiceException(900001002, "请传参activityId");
|
|
|
}
|
|
|
|
|
|
//(2) 根据活动ID查询drawline_activity表
|
...
|
...
|
@@ -54,7 +53,7 @@ public class ActivitySettingServiceImpl implements IActivitySettingService { |
|
|
+ "result is {}", activityId, activity);
|
|
|
if(null == activity){
|
|
|
logger.warn("getActivityInfo: activity not exists.");
|
|
|
throw new ServiceException(401, "activity not exists");
|
|
|
throw new ServiceException(900001003, "活动不存在");
|
|
|
}
|
|
|
|
|
|
//(3) 根据活动ID查询drawline_prize_setting表
|
...
|
...
|
@@ -63,7 +62,7 @@ public class ActivitySettingServiceImpl implements IActivitySettingService { |
|
|
+ "result is {}", activityId, prizeSetting);
|
|
|
if(null == prizeSetting){
|
|
|
logger.warn("getActivityInfo: prizeSetting not exists.");
|
|
|
throw new ServiceException(402, "prizeSetting not exists");
|
|
|
throw new ServiceException(900001009, "活动奖项不存在");
|
|
|
}
|
|
|
|
|
|
//(4) 查询是否开奖
|
...
|
...
|
|