package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 订单商品
 *
 * @author 科技小王子
 * @since 2024-10-26 12:18:05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "OrderGoods对象", description = "订单商品")
@TableName("sys_order_goods")
public class OrderGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单类型，0商城 1应用插件")
    private Integer type;

    @ApiModelProperty(value = "订单号")
    private Integer orderId;

    @ApiModelProperty(value = "项目ID")
    private Integer itemId;

    @ApiModelProperty(value = "插件ID")
    private Integer menuId;

    @ApiModelProperty(value = "实际付款")
    private BigDecimal payPrice;

    @ApiModelProperty(value = "购买时长")
    private Integer month;

    @ApiModelProperty(value = "购买数量")
    private Integer totalNum;

    @ApiModelProperty(value = "0未付款，1已付款")
    private Boolean payStatus;

    @ApiModelProperty(value = "0未完成，1已完成，2已取消，3取消中，4退款申请中，5退款被拒绝，6退款成功，7客户端申请退款")
    private Integer orderStatus;

    @ApiModelProperty(value = "预约详情开始时间数组")
    private String startTime;

    @ApiModelProperty(value = "是否已开具发票：0未开发票，1已开发票，2不能开具发票")
    private Boolean isInvoice;

    @ApiModelProperty(value = "发票流水号")
    private String invoiceNo;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "过期时间")
    private Date expirationTime;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "产品控制台")
    private String adminUrl;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "应用名称")
    @TableField(exist = false)
    private String tenantName;

    @ApiModelProperty(value = "应用图标")
    @TableField(exist = false)
    private String logo;
}
