public class BonusRule extends Object
| Modifier and Type | Field and Description |
|---|---|
private Integer |
costBonusUnit
每使用X积分
|
private Integer |
costMoneyUnit
消费金额。以分为单位
|
private Integer |
increaseBonus
对应增加的积分
|
private Integer |
initIncreaseBonus
初始设置积分
|
private Integer |
leastMoneyToUseBonus
抵扣条件,满xx元(这里以分为单位)可用
|
private Integer |
maxIncreaseBonus
用户单次可获取的积分上限
|
private Integer |
maxReduceBonus
抵扣条件,单笔最多使用xx积分
|
private Integer |
reduceMoney
抵扣xx元,(这里以分为单位)
|
| Constructor and Description |
|---|
BonusRule()
Instantiates a new Bonus rule.
|
BonusRule(Integer costMoneyUnit,
Integer increaseBonus,
Integer maxIncreaseBonus,
Integer initIncreaseBonus,
Integer costBonusUnit,
Integer reduceMoney,
Integer maxReduceBonus,
Integer leastMoneyToUseBonus)
Instantiates a new Bonus rule.
|
| Modifier and Type | Method and Description |
|---|---|
BonusRule |
costBonusUnit(Integer costBonusUnit)
Cost bonus unit bonus rule.
|
BonusRule |
costMoneyUnit(Integer costMoneyUnit)
Cost money unit bonus rule.
|
BonusRule |
increaseBonus(Integer increaseBonus)
Increase bonus bonus rule.
|
BonusRule |
initIncreaseBonus(Integer initIncreaseBonus)
Init increase bonus bonus rule.
|
BonusRule |
leastMoneyToUseBonus(Integer leastMoneyToUseBonus)
Least money to use bonus bonus rule.
|
BonusRule |
maxIncreaseBonus(Integer maxIncreaseBonus)
Max increase bonus bonus rule.
|
BonusRule |
maxReduceBonus(Integer maxReduceBonus)
Max reduce bonus bonus rule.
|
BonusRule |
reduceMoney(Integer reduceMoney)
Reduce money bonus rule.
|
private Integer costMoneyUnit
private Integer increaseBonus
private Integer maxIncreaseBonus
private Integer initIncreaseBonus
private Integer costBonusUnit
private Integer reduceMoney
private Integer maxReduceBonus
private Integer leastMoneyToUseBonus
public BonusRule()
BonusRule(Integer costMoneyUnit, Integer increaseBonus, Integer maxIncreaseBonus, Integer initIncreaseBonus, Integer costBonusUnit, Integer reduceMoney, Integer maxReduceBonus, Integer leastMoneyToUseBonus)
costMoneyUnit - the cost money unitincreaseBonus - the increase bonusmaxIncreaseBonus - the max increase bonusinitIncreaseBonus - the init increase bonuscostBonusUnit - the cost bonus unitreduceMoney - the reduce moneymaxReduceBonus - the max reduce bonusleastMoneyToUseBonus - the least money to use bonuspublic BonusRule costMoneyUnit(Integer costMoneyUnit)
costMoneyUnit - the cost money unitpublic BonusRule increaseBonus(Integer increaseBonus)
increaseBonus - the increase bonuspublic BonusRule maxIncreaseBonus(Integer maxIncreaseBonus)
maxIncreaseBonus - the max increase bonuspublic BonusRule initIncreaseBonus(Integer initIncreaseBonus)
initIncreaseBonus - the init increase bonuspublic BonusRule costBonusUnit(Integer costBonusUnit)
costBonusUnit - the cost bonus unitpublic BonusRule reduceMoney(Integer reduceMoney)
reduceMoney - the reduce moneypublic BonusRule maxReduceBonus(Integer maxReduceBonus)
maxReduceBonus - the max reduce bonusCopyright © 2024. All rights reserved.