|
@@ -128,6 +128,10 @@ public class TicketBoxServiceImpl extends ServiceImpl<TicketBoxMapper, TicketBox
|
|
|
awardsPrize.setPrizeId(bizIdGenerator.newId());
|
|
|
awardsPrize.setBoxId(ticketBox.getBoxId());
|
|
|
awardsPrize.setAwardsId(ticketAwards.getAwardsId());
|
|
|
+ if (null == awardsPrize.getQuantity() || 0 == awardsPrize.getQuantity()) {
|
|
|
+ // 页面没设置奖品的具体数量,则默认为整个奖项的数量
|
|
|
+ awardsPrize.setQuantity(ticketAwards.getQuantity());
|
|
|
+ }
|
|
|
awardsPrize.setRemainQty(awardsPrize.getQuantity());
|
|
|
awardsPrize.setCashedQty(0);
|
|
|
if (prizeParam.getPrizeType() == TicketPrizeTypeEnum.GOODS) {
|