cup 2 years ago
parent
commit
40ad007318

+ 2 - 4
mp-service/src/main/java/com/qs/mp/admin/service/impl/TicketBoxServiceImpl.java

@@ -130,8 +130,7 @@ public class TicketBoxServiceImpl extends ServiceImpl<TicketBoxMapper, TicketBox
 
 
     // 清除盲票关联商品
-    Assert.isTrue(ticketBoxGoodsService.remove(
-        new LambdaUpdateWrapper<TicketBoxGoods>().eq(TicketBoxGoods::getBoxId, ticketBox.getBoxId())), "清除盲票关联商品失败");
+    ticketBoxGoodsService.remove(new LambdaUpdateWrapper<TicketBoxGoods>().eq(TicketBoxGoods::getBoxId, ticketBox.getBoxId()));
 
     // 关联商品
     if (CollectionUtils.isNotEmpty(param.getGoodsList())) {
@@ -140,8 +139,7 @@ public class TicketBoxServiceImpl extends ServiceImpl<TicketBoxMapper, TicketBox
 
 
     // 清除指定渠道内容
-    Assert.isTrue(ticketBoxChannelService.remove(
-        new LambdaUpdateWrapper<TicketBoxChannel>().eq(TicketBoxChannel::getBoxId, ticketBox.getBoxId())), "清除清除指定渠道内容失败");
+    ticketBoxChannelService.remove(new LambdaUpdateWrapper<TicketBoxChannel>().eq(TicketBoxChannel::getBoxId, ticketBox.getBoxId()));
 
     // 指定渠道
     if (TicketBoxSaleChannelTypeEnum.PART.getValue().equals(param.getSaleChannelType())) {