乱七八糟折扣计算 不包括会员整单折扣

This commit is contained in:
2025-10-24 15:40:51 +08:00
parent 96e3e9a68f
commit 56dfdcd523
3 changed files with 210 additions and 109 deletions

View File

@@ -70,14 +70,13 @@ public class MkDiscountActivityServiceImpl extends ServiceImpl<MkDiscountActivit
throw new CzgException("满减活动与优惠券不可共用");
}
//检查是否开启了限时折扣
if (limitRateShare && activityDTO.getDiscountShare() == 0) {
throw new CzgException("满减活动与限时折扣不可共用");
}
// if (limitRateShare && activityDTO.getDiscountShare() == 0) {
// throw new CzgException("满减活动与限时折扣不可共用");
// }
//检查是否开启了会员抵扣
if (vipShare && activityDTO.getVipPriceShare() == 0) {
throw new CzgException("满减活动与会员价不可共用");
}
// if (vipShare && activityDTO.getVipPriceShare() == 0) {
// throw new CzgException("满减活动与会员价不可共用");
// }
//检查是否开启了积分抵扣
if (pointsShare && activityDTO.getPointsShare() == 0) {
throw new CzgException("满减活动与积分抵扣不可共用");