3
0
Fork 0

## 注册、升级订单等级处理修改;

This commit is contained in:
cabbage 2025-06-21 09:21:02 +08:00
parent 68ef41e6b4
commit f6356586c2
1 changed files with 2 additions and 2 deletions

View File

@ -2660,9 +2660,9 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
if (null == memberGrade) { if (null == memberGrade) {
// 注册处理 // 注册处理
// 去掉 V4,V5 升级盒数小于购买盒数的最大一个等级为注册等级 // 小于V4等级 并且 升级盒数小于购买盒数的最大一个等级为注册等级
return gradeList.stream() return gradeList.stream()
.filter(tmpGrade -> tmpGrade.getGradeValue() != EGrade.VIP.getValue() && tmpGrade.getGradeValue() != EGrade.S_VIP.getValue() && tmpGrade.getBoxNumber() <= boxTotal) .filter(tmpGrade -> tmpGrade.getGradeValue() < EGrade.VIP.getValue() && tmpGrade.getBoxNumber() <= boxTotal)
.max(Comparator.comparingInt(BdGrade::getGradeValue)).get(); .max(Comparator.comparingInt(BdGrade::getGradeValue)).get();
} else { } else {
// 非注册处理 // 非注册处理