|
@@ -441,7 +441,8 @@ public class TicketBoxServiceImpl extends ServiceImpl<TicketBoxMapper, TicketBox
|
|
|
}
|
|
|
|
|
|
// 指定渠道
|
|
|
- if (TicketBoxSaleChannelTypeEnum.PART.getValue().equals(param.getSaleChannelType())) {
|
|
|
+ if (TicketBoxSaleChannelTypeEnum.PART.getValue().equals(param.getSaleChannelType())
|
|
|
+ && TicketTypeEnum.OFFLINE.getValue().equals(param.getType())) {
|
|
|
List<Long> channelIdList = param.getChannelIdList();
|
|
|
if (CollectionUtils.isEmpty(channelIdList)) {
|
|
|
throw new ServiceException("渠道列表为空");
|
|
@@ -476,7 +477,8 @@ public class TicketBoxServiceImpl extends ServiceImpl<TicketBoxMapper, TicketBox
|
|
|
}
|
|
|
|
|
|
// 线上票指定门店
|
|
|
- if (TicketBoxSaleChannelTypeEnum.SHOP.getValue().equals(param.getSaleChannelType())) {
|
|
|
+ if (TicketBoxSaleChannelTypeEnum.PART.getValue().equals(param.getSaleChannelType())
|
|
|
+ && TicketTypeEnum.ONLINE.getValue().equals(param.getType())) {
|
|
|
List<Long> channelIdList = param.getChannelIdList();
|
|
|
if (CollectionUtils.isEmpty(channelIdList)) {
|
|
|
throw new ServiceException("门店列表为空");
|