package com.ruoyi.frequency.appeal.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.vo.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 申诉对象 t_appeal
 *
 * @author zj
 * @date 2023-10-13
 */
@Data
@Accessors(chain = true)
@TableName("t_appeal")
public class Appeal extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("租户号")
    private Long id;

    @ApiModelProperty("删除标志 1 正常 2 删除 3 禁用")
    private Integer delFlag;

    @ApiModelProperty("订单id")
    @Excel(name = "订单id")
    private Long orderId;

    @ApiModelProperty("申诉内容")
    @Excel(name = "申诉内容")
    private String content;

    @ApiModelProperty("申诉图片/视频")
    @Excel(name = "申诉图片/视频")
    private String picture;

    @ApiModelProperty("申诉人")
    @Excel(name = "申诉人")
    private Long appealUserId;

    @ApiModelProperty("被申诉人")
    @Excel(name = "被申诉人")
    private Long passiveAppealUserId;

    @ApiModelProperty("申诉结果;状态 1 待处理 2申诉人胜诉 3被申诉人胜诉")
    @Excel(name = "申诉结果;状态 1 待处理 2申诉人胜诉 3被申诉人胜诉")
    private Integer appealResult;

    @ApiModelProperty("申诉人用户类型")
    private Integer appealUserType;

    @ApiModelProperty("被申诉人用户类型")
    private Integer passiveAppealUserType;

    @ApiModelProperty("申诉视频")
    @Excel(name = "申诉视频")
    private String videoUrl;

    @ApiModelProperty("订单结果")
    private String remark;

    @ApiModelProperty("调价价格")
    private BigDecimal amount;

    @ApiModelProperty("退款金额 申诉价格小于订单价格")
    private BigDecimal refundPrice;


    @ApiModelProperty("订单编号")
    @TableField(exist = false)
    private String orderNo;

    @ApiModelProperty("订单标题")
    @TableField(exist = false)
    private String title;

    @ApiModelProperty("订单内容")
    @TableField(exist = false)
    private String orderContent;

    @ApiModelProperty("素材")
    @Excel(name = "素材")
    @TableField(exist = false)
    private String sourceMaterial;


    @ApiModelProperty("申诉人信息")
    @TableField(exist = false)
    private UserInfo appealUserInfo;

    @ApiModelProperty("被申诉人信息")
    @TableField(exist = false)
    private UserInfo passiveAppealUserInfo;


    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private Date beginTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private Date endTime;


}
