This commit is contained in:
2026-02-13 13:34:17 +08:00
parent df88450bab
commit a1ebf5b065
3 changed files with 7 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ public class CommonBenefitPointServiceImpl extends BaseServiceImpl<CommonBenefit
return Boolean.TRUE;
}
@Transactional(rollbackFor = RuntimeException.class)
@Override
public Boolean deductBenefitPoint(CommonBenefitPointApiDTO dto) {
CommonBenefitPointLogEntity benefitPointLog = saveBenefitPointLog(dto, 2);

View File

@@ -40,6 +40,7 @@ import org.springblade.modules.common.service.ICommonCashCouponService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.util.Date;
@@ -62,6 +63,7 @@ public class CommonCashCouponServiceImpl extends BaseServiceImpl<CommonCashCoupo
return page.setRecords(baseMapper.selectCommonCashCouponPage(page, commonCashCoupon));
}
@Transactional(rollbackFor = RuntimeException.class)
@Override
public Boolean addCashCoupon(CommonCashCouponApiDTO dto) {
CommonCashCouponLogEntity cashCouponLog = saveBenefitPointLog(dto , 1);
@@ -85,6 +87,7 @@ public class CommonCashCouponServiceImpl extends BaseServiceImpl<CommonCashCoupo
return Boolean.TRUE;
}
@Transactional(rollbackFor = RuntimeException.class)
@Override
public Boolean deductCashCoupon(CommonCashCouponApiDTO dto) {
CommonCashCouponLogEntity cashCouponLog = saveBenefitPointLog(dto , 2);

View File

@@ -15,6 +15,7 @@ import org.springblade.modules.common.service.ICommonUserPointService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.util.Date;
@@ -37,6 +38,7 @@ public class CommonUserPointServiceImpl extends BaseServiceImpl<CommonUserPointM
return page.setRecords(baseMapper.selectCommonUserPointPage(page, commonUserPoint));
}
@Transactional(rollbackFor = RuntimeException.class)
@Override
public Boolean addUserPoint(CommonUserPointApiDTO dto) {
CommonUserPointLogEntity userPointLog = saveBenefitPointLog(dto, 1);
@@ -60,6 +62,7 @@ public class CommonUserPointServiceImpl extends BaseServiceImpl<CommonUserPointM
return Boolean.TRUE;
}
@Transactional(rollbackFor = RuntimeException.class)
@Override
public Boolean deductUserPoint(CommonUserPointApiDTO dto) {
CommonUserPointLogEntity userPointLog = saveBenefitPointLog(dto, 2);