积分抵扣 设置为0时 未开启

This commit is contained in:
wangw 2025-09-30 09:57:13 +08:00
parent 4d37f79650
commit 7fbc7a9b73
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ public class MemberPointsServiceImpl extends ServiceImpl<MemberPointsMapper, Mem
dto.setUnusableReason("积分不足或小于最低使用门槛" + dto.getMinDeductionPoints());
return dto;
}
if (basic.getEquivalentPoints() == 0) {
return dto;
}
// 下单抵扣积分比例 1元=?积分
Integer equivalentPoints = basic.getEquivalentPoints();
// 计算账户积分=?