|
|
@@ -194,6 +194,9 @@ public class ExchangeCodeServiceImpl extends ServiceImpl<ExchangeCodeMapper, Exc
|
|
|
if (exchangeCode.getUseStatus()) {
|
|
|
throw BusinessRuntimeException.getInstance("该兑换码已使用");
|
|
|
}
|
|
|
+ if (exchangeCode.getType() == 2) {
|
|
|
+ throw BusinessRuntimeException.getInstance("兑换码错误");
|
|
|
+ }
|
|
|
//店铺中 进行兑换码 兑换 标记订单 座位
|
|
|
String customId = exchangeCodeTicket.getCustomId();
|
|
|
Long yhsId = yhShopFrontService.checkShopCustomIdAndReturnShopId(customId);
|