fix:秒杀活动异常消息resultcode 修正

This commit is contained in:
Chopper711 2023-07-21 18:29:58 +08:00
parent 007b145c2e
commit 8f1541c338

View File

@ -153,7 +153,7 @@ public class SeckillServiceImpl extends AbstractPromotionsServiceImpl<SeckillMap
this.checkPromotions(promotions);
//如果申请结束时间在当前时间之前
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);
seckillApplyService.updateSeckillApplyTime(promotions);