package com.pj.tb_order_after_sale;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;

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

/**
 * Model: tb_order_after_sale -- 售后申请表，并关联一级市场订单
 * @author qzy 
 */
@Data
@Accessors(chain = true)
@TableName(TbOrderAfterSale.TABLE_NAME)
@EqualsAndHashCode(callSuper = false)
public class TbOrderAfterSale extends Model<TbOrderAfterSale> implements Serializable {

	// ---------- 模块常量 ----------
	/**
	 * 序列化版本id 
	 */
	private static final long serialVersionUID = 1L;	
	/**
	 * 此模块对应的表名 
	 */
	public static final String TABLE_NAME = "tb_order_after_sale";	
	/**
	 * 此模块对应的权限码 
	 */
	public static final String PERMISSION_CODE = "tb-order-after-sale";
	public static final String PERMISSION_CODE_ADD = "tb-order-after-sale-add";
	public static final String PERMISSION_CODE_EDIT = "tb-order-after-sale-edit";
	public static final String PERMISSION_CODE_DEL = "tb-order-after-sale-del";




	// ---------- 表中字段 ----------
	/**
	 * 售后申请表主键id 
	 */
	@TableId(type = IdType.AUTO)
	private Long id;	

	/**
	 * 订单表主键 
	 */
	private Long orderId;	

	/**
	 * 发起售后人的ID 
	 */
	private Long userId;	

	/**
	 * 售后发起人电话 
	 */
	private String userPhone;	

	/**
	 * 发起售后时间 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date time;

	/**
	 * 申请类型 
	 */
	private Integer applyType;	

	/**
	 * 发起售后原因 
	 */
	private String remark;

	/**
	 * 卖家ID
	 */
	private Long saleMainId;

	/**
	 * 售后状态 
	 */
	private Integer afterSaleStatus;	

	/**
	 * 货物图片 
	 */
	private String goodsImg;	

	/**
	 * 货物名称 
	 */
	private String goodsName;	

	/**
	 * 货物数量 
	 */
	private Integer goodsNum;	





	


}
