package com.ifish.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 商品管理
 * @author Administrator
 *
 */
@Entity
@Table(name="tbl_ifish_goods")
public class IfishGoods implements Serializable{

	private static final long serialVersionUID = -5086333556284372931L;
	/**
	 * 商品ID
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="goods_id")
	private Integer goodsId;
	/**
	 * 商品名称
	 */
	@Column(name="goods_name",nullable=false,length=20)
	private String goodsName;
	/**
	 * 是否是淘宝链接
	 */
	@Column(name="is_taobao_link",nullable=false)
	private Integer isTaobaoLink;
	/**
	 * 商品链接
	 */
	@Column(name="goods_link",nullable=false,length=100)
	private String goodsLink;
	/**
	 * 商铺图片
	 */
	@Column(name="goods_picture",nullable=false,length=20)
	private String goodsPicture;
	/**
	 * 原价格
	 */
	@Column(name="ori_price",nullable=false,scale=2,precision=7)
	private BigDecimal oriPrice;
	/**
	 * 优惠价格
	 */
	@Column(name="pre_price",nullable=false,scale=2,precision=7)
	private BigDecimal prePrice;
	/**
	 * 是否显示
	 */
	@Column(name="is_show",nullable=false)
	private Integer isShow;
	/**
	 * 商品位置
	 */
	@Column(name="goods_place",nullable=false)
	private Integer goodsPlace;
	/**
	 * 所属店铺
	 */
	@Column(name="shop_id",nullable=false)
	private Integer shopId;
	/**
	 * 点击量
	 */
	@Column(name="click_num",nullable=false)
	private Integer clickNum;
	/**
	 * 店铺名称
	 */
	@Transient
	private String shopName;
	
	public Integer getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public String getGoodsLink() {
		return goodsLink;
	}
	public void setGoodsLink(String goodsLink) {
		this.goodsLink = goodsLink;
	}
	public String getGoodsPicture() {
		return goodsPicture;
	}
	public void setGoodsPicture(String goodsPicture) {
		this.goodsPicture = goodsPicture;
	}
	public BigDecimal getOriPrice() {
		return oriPrice;
	}
	public void setOriPrice(BigDecimal oriPrice) {
		this.oriPrice = oriPrice;
	}
	public BigDecimal getPrePrice() {
		return prePrice;
	}
	public void setPrePrice(BigDecimal prePrice) {
		this.prePrice = prePrice;
	}
	public Integer getIsShow() {
		return isShow;
	}
	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}
	public Integer getGoodsPlace() {
		return goodsPlace;
	}
	public void setGoodsPlace(Integer goodsPlace) {
		this.goodsPlace = goodsPlace;
	}
	public Integer getShopId() {
		return shopId;
	}
	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public Integer getClickNum() {
		return clickNum;
	}
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}
	public Integer getIsTaobaoLink() {
		return isTaobaoLink;
	}
	public void setIsTaobaoLink(Integer isTaobaoLink) {
		this.isTaobaoLink = isTaobaoLink;
	}
	
}
