package org.jeecg.modules.hotelshoppingcat.resp;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;

@Data
public class ShoppingCartPageResp {

    private String id;
    /**商品名*/
    private String name;
    /**商品图*/
    private String pic;
    /**规格*/
    private String title;
    /**价格*/
    private BigDecimal price;
    /**押金*/
    private BigDecimal depositPrice;
    /**原价*/
    private BigDecimal originalPrice;
    private Integer num;
    private String skuId;
    private String goodsId;
    private String colour;

    public String getTitle() {
        if(StringUtils.isNotBlank(this.colour)){
            this.title = this.colour+","+this.title;


        }
        return title;
    }



}
