package com.hz.phis.vo.order;
|
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.math.RoundingMode;
|
|
/**
|
* @author CJH
|
*/
|
@Data
|
public class OrderActivityReturnVo {
|
/**活动的订单是否已执行:0否1是*/
|
private Integer isExecute = 0;
|
/**是否已下单*/
|
private Integer isOrder = 0;
|
/**增值金*/
|
private BigDecimal incrementMoney = BigDecimal.ZERO;
|
/**积分*/
|
private BigDecimal integralMoney = BigDecimal.ZERO;
|
/**优惠券数量*/
|
private Integer couponNum = 0;
|
/**邀请的人数*/
|
private Integer inviteeNum = 0;
|
/**分享的人数*/
|
private Integer shareNum = 0;
|
|
|
|
public void incrementMoneyAdd(BigDecimal money) {
|
if (money == null){
|
money = BigDecimal.ZERO;
|
}
|
this.incrementMoney = this.incrementMoney.add(money).setScale(2, RoundingMode.HALF_UP);
|
}
|
public void integralMoneyAdd(BigDecimal money) {
|
if (money == null){
|
money = BigDecimal.ZERO;
|
}
|
this.integralMoney = this.integralMoney.add(money).setScale(2, RoundingMode.HALF_UP);
|
}
|
public void couponNumAdd(Integer num) {
|
if (num == null){
|
num = 0;
|
}
|
this.couponNum = this.couponNum + num;
|
}
|
|
|
}
|