package com.macro.mall.portal.domain;

import com.macro.mall.model.OmsCartItem;

import java.math.BigDecimal;

/**
 * Created by macro on 2018/8/27.
 * 购物车中促销信息的封装
 */
public class CartPromotionItem extends OmsCartItem{
    //促销活动信息
    private String promotionMessage;
    //促销活动减去的金额，针对每个商品
    private BigDecimal reduceAmount;
    //商品的真实库存（剩余库存-锁定库存）
    private Integer realStock;
    //购买商品赠送积分
    private Integer integration;
    //购买商品赠送成长值
    private Integer growth;
    public String getPromotionMessage() {
        return promotionMessage;
    }

    public void setPromotionMessage(String promotionMessage) {
        this.promotionMessage = promotionMessage;
    }

    public BigDecimal getReduceAmount() {
        return reduceAmount;
    }

    public void setReduceAmount(BigDecimal reduceAmount) {
        this.reduceAmount = reduceAmount;
    }

    public Integer getRealStock() {
        return realStock;
    }

    public void setRealStock(Integer realStock) {
        this.realStock = realStock;
    }

    public Integer getIntegration() {
        return integration;
    }

    public void setIntegration(Integer integration) {
        this.integration = integration;
    }

    public Integer getGrowth() {
        return growth;
    }

    public void setGrowth(Integer growth) {
        this.growth = growth;
    }
}

@@ -108,16 +108,31 @@
 l;%0A%0A/**%0A
+ * %E8%B4%AD%E7%89%A9%E8%BD%A6%E4%B8%AD%E4%BF%83%E9%94%80%E4%BF%A1%E6%81%AF%E7%9A%84%E5%B0%81%E8%A3%85%0A
  * Creat
@@ -157,31 +157,16 @@
 8/8/27.%0A
- * %E8%B4%AD%E7%89%A9%E8%BD%A6%E4%B8%AD%E4%BF%83%E9%94%80%E4%BF%A1%E6%81%AF%E7%9A%84%E5%B0%81%E8%A3%85%0A
  */%0Apubl

Update CartPromotionItem.java