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

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

@@ -50,4 +50,18 @@ public class LimitRateDTO implements Serializable {
}
return foodIds;
}
public boolean isLimitFoodId(Long foodId) {
if (foodType == 1) {
return true;
} else {
Set<Long> foodIds = getFoodIds();
if (CollUtil.isEmpty(foodIds)) {
return false;
} else {
return foodIds.contains(foodId);
}
}
}
}