|
@@ -211,13 +211,13 @@ public class TicketBoxServiceImpl extends ServiceImpl<TicketBoxMapper, TicketBox
|
|
|
}
|
|
|
|
|
|
// 线上票需要判断商品数量合法性
|
|
|
- if (TicketTypeEnum.ONLINE.equals(ticketBox.getType())) {
|
|
|
- int quantity = ticketAwardsParam.getPrizeList().stream().mapToInt(TicketAwardsPrizeParam::getQuantity)
|
|
|
- .sum();
|
|
|
- if (quantity != ticketAwardsParam.getQuantity()) {
|
|
|
- throw new ServiceException("奖品总数值不相同");
|
|
|
- }
|
|
|
- }
|
|
|
+// if (TicketTypeEnum.ONLINE.equals(ticketBox.getType())) {
|
|
|
+// int quantity = ticketAwardsParam.getPrizeList().stream().mapToInt(TicketAwardsPrizeParam::getQuantity)
|
|
|
+// .sum();
|
|
|
+// if (quantity != ticketAwardsParam.getQuantity()) {
|
|
|
+// throw new ServiceException("奖品总数值不相同");
|
|
|
+// }
|
|
|
+// }
|
|
|
TicketAwards ticketAwards = new TicketAwards();
|
|
|
ticketAwards.setAwardsId(ticketAwardsParam.getAwardsId());
|
|
|
ticketAwards.setAwardsLabel(ticketAwardsParam.getAwardsLabel());
|