|
@@ -38,6 +38,19 @@ public class CouponPkgServiceImpl extends ServiceImpl<CouponPkgMapper, CouponPkg
|
|
@Autowired
|
|
@Autowired
|
|
private ICouponPkgItemService couponPkgItemService;
|
|
private ICouponPkgItemService couponPkgItemService;
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
+ public boolean delete(Long id) {
|
|
|
|
+
|
|
|
|
+ // 删除券包明细
|
|
|
|
+ couponPkgItemService.remove(new LambdaQueryWrapper<CouponPkgItem>().eq(CouponPkgItem::getCouponPkgId, id));
|
|
|
|
+
|
|
|
|
+ // 删除券包
|
|
|
|
+ this.removeById(id);
|
|
|
|
+
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public CouponPkgVO detail(Long id) {
|
|
public CouponPkgVO detail(Long id) {
|
|
CouponPkgVO couponPkgVO = new CouponPkgVO();
|
|
CouponPkgVO couponPkgVO = new CouponPkgVO();
|