fix:秒杀活动异常消息resultcode 修正
This commit is contained in:
parent
007b145c2e
commit
8f1541c338
@ -153,7 +153,7 @@ public class SeckillServiceImpl extends AbstractPromotionsServiceImpl<SeckillMap
|
|||||||
this.checkPromotions(promotions);
|
this.checkPromotions(promotions);
|
||||||
//如果申请结束时间在当前时间之前
|
//如果申请结束时间在当前时间之前
|
||||||
if (promotions.getApplyEndTime().before(new Date()) || promotions.getApplyEndTime().after(promotions.getStartTime())) {
|
if (promotions.getApplyEndTime().before(new Date()) || promotions.getApplyEndTime().after(promotions.getStartTime())) {
|
||||||
throw new ServiceException(ResultCode.STORE_NAME_EXIST_ERROR);
|
throw new ServiceException(ResultCode.APPLY_END_TIME_ERROR);
|
||||||
}
|
}
|
||||||
boolean result = this.updateById(promotions);
|
boolean result = this.updateById(promotions);
|
||||||
seckillApplyService.updateSeckillApplyTime(promotions);
|
seckillApplyService.updateSeckillApplyTime(promotions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user