feat:优化涨价
This commit is contained in:
1 parent
4e5afdc272
commit
9317daa90d
15 files changed
+249
-170
No files matched your search
+5
@@ -43,6 +43,11 @@ public class WalletXfjDiscounts {
|
||||
*/
|
||||
private Double extraPer;
|
||||
|
||||
/**
|
||||
* 特色菜是否额外收费
|
||||
*/
|
||||
private String specialDishEnable;
|
||||
|
||||
public int computedDiscountsExtraPrice(int totalPrice) {
|
||||
if (totalPrice <= basePrice) return 0;
|
||||
double rate = ObjectUtil.isEmpty(extraPer) ? 1.0 : extraPer;
|
||||
|
||||
Reference in new issue
Block a user