秒杀活动为空,则不反回秒杀时间段,直接返回异常,告知今日无活动
This commit is contained in:
parent
3a14e96c5d
commit
603c1d6935
@ -101,7 +101,11 @@ public class SeckillApplyServiceImpl extends ServiceImpl<SeckillApplyMapper, Sec
|
||||
timelineVoS.add(seckillTimelineVO);
|
||||
}
|
||||
}
|
||||
if (timelineVoS.size() > 0) {
|
||||
return timelineVoS;
|
||||
} else {
|
||||
throw new ServiceException(ResultCode.SECKILL_NOT_START_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user