Authored by chaogeng

修改错误码

... ... @@ -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) 查询是否开奖
... ...
... ... @@ -63,7 +63,7 @@ public class LuckyUserServiceImpl implements ILuckyUserService {
int activityId = activityReqBO.getActivityId();
if(activityId < 1){
logger.warn("LuckyUserServiceImpl.getLuckyUserList: activityId is null");
throw new ServiceException(400, "activityId is null");
throw new ServiceException(900001002, "请传参activityId");
}
//(2) 处理分页参数
... ... @@ -85,7 +85,7 @@ public class LuckyUserServiceImpl implements ILuckyUserService {
//(5) 没有中奖用户时抛出异常
if(null == luckyUserList){
logger.warn("LuckyUserServiceImpl.getLuckyUserList: luckyUserList is null");
throw new ServiceException(401, "没有中奖用户");
throw new ServiceException(900001010, "无中奖用户");
}
//(6) 组装中奖用户列表信息
... ...