package com.tzy.pojo.item;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description  
 * @Author  poyee
 * @Date 2022-03-15 
 */

@Table ( name ="order_list" )
@Data
@Accessors(chain = true)
public class OrderList  implements Serializable {

	private static final long serialVersionUID =  817068233689419434L;

   	@Column(name = "id" )
	private Long id;

	/**
	 * 订单id
	 */
   	@Column(name = "order_id" )
	private Long orderId;

	/**
	 * skuid
	 */
   	@Column(name = "sku_id" )
	private Long skuId;
	private Long spuId;

	/**
	 * 类型
	 */
   	@Column(name = "type" )
	private String type;

   	@Column(name = "order_no" )
	private String orderNo;

	/**
	 * sku名称
	 */
   	@Column(name = "sku_name" )
	private String skuName;
   	/**
	  * sku图片
	 */
	private String skuImg;

	/**
	 * sku code
	 */
   	@Column(name = "sku_code" )
	private String skuCode;

   	@Column(name = "qty" )
	private Long qty;

	/**
	 * 零售价
	 */
   	@Column(name = "retail_price" )
	private BigDecimal retailPrice;

	/**
	 * 活动价
	 */
   	@Column(name = "act_price" )
	private BigDecimal actPrice;

   	@Column(name = "standard_price" )
	private BigDecimal standardPrice;

	/**
	 * 实付款金额(扣除优惠劵)
	 */
   	@Column(name = "total_amount" )
	private BigDecimal totalAmount;
	/**
	 * 应付款
	 */
	private BigDecimal accountsPayable;

	/**
	 * 积分抵扣
	 */
   	@Column(name = "point_deduction" )
	private Long pointDeduction;

	/**
	 * 优惠券抵扣
	 */
   	@Column(name = "coupon_deduction" )
	private BigDecimal couponDeduction;

	/**
	 * 满减抵扣
	 */
   	@Column(name = "full_cut_deduction" )
	private BigDecimal fullCutDeduction;

	/**
	 * 品牌id
	 */
   	@Column(name = "brand_id" )
	private Long brandId;

	/**
	 * 品牌
	 */
   	@Column(name = "brand_name" )
	private String brandName;

	/**
	 * 二级分类
	 */
   	@Column(name = "second_cat_name" )
	private String secondCatName;

	/**
	 * 商家id
	 */
   	@Column(name = "merchant_id" )
	private Long merchantId;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Long status;

	/**
	 * 删除标记
	 */
   	@Column(name = "del_flag" )
	private Long delFlag;

   	@Column(name = "prop1" )
	private String prop1;

   	@Column(name = "prop2" )
	private String prop2;

   	@Column(name = "create_user_id" )
	private Long createUserId;

   	@Column(name = "create_time" )
	private Date createTime;

   	@Column(name = "update_user_id" )
	private Long updateUserId;

   	@Column(name = "update_time" )
	private Date updateTime;
	/**
	 * 直播间id
	 */
	private Long liveId;

	private Integer needLive; // 直播时长(分钟)

	/**是否允许自提,默认0 拒绝 1同意*/
	private Integer pickUpSelf;

	private String spuName;

	/**关联checklist_base_id**/
	@Column(name = "checklist_base_id")
	private Long checklistBaseId;
	/**运费 **/
	private BigDecimal shipingCost;

	private BigDecimal discountAmount; // 折扣金额
	private BigDecimal memberDiscount; // 会员折扣
	private int discountPoint; // 折扣积分
	private Long skuPoint; // 单个sku积分
}
