package com.zbkj.common.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName("eb_store_order_return")
public class StoreOrderReturn implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 订单id
     */
    private Integer orderId;
    /**
     * 联系人电话
     */
    private String contactPhone;
    /**
     * 退款审核时间
     */
    private Date returnVerifyDate;
    /**
     * 退款原因
     */
    private String returnReason;
    /**
     * 退款图片
     */
    private String returnImage;
    /**
     * 申请退款失败原因
     */
    private String refundVerifyFailReason;
    /**
     * 退款金额
     */
    private BigDecimal returnAmount;
    /**
     * 1退款审核中  2审核通过  3审核拒绝  4退款失败
     */
    private Integer returnState;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    @Transient
    @TableField(exist = false)
    private List<StoreOrderReturnInfo> returnInfos;

}
