乱七八糟折扣计算 不包括会员整单折扣
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user