package com.gxwebsoft.common.system.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 订单商品查询参数
 *
 * @author 科技小王子
 * @since 2024-10-26 12:18:05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "OrderGoodsParam对象", description = "订单商品查询参数")
public class OrderGoodsParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "订单号")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "订单类型，0商城 1应用插件")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @Schema(description = "订单号")
    @QueryField(type = QueryType.EQ)
    private Integer orderId;

    @Schema(description = "项目ID")
    @QueryField(type = QueryType.EQ)
    private Integer itemId;

    @Schema(description = "实际付款")
    @QueryField(type = QueryType.EQ)
    private BigDecimal payPrice;

    @Schema(description = "购买数量")
    @QueryField(type = QueryType.EQ)
    private Integer totalNum;

    @Schema(description = "0未付款，1已付款")
    @QueryField(type = QueryType.EQ)
    private Boolean payStatus;

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

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

    @Schema(description = "是否已开具发票：0未开发票，1已开发票，2不能开具发票")
    @QueryField(type = QueryType.EQ)
    private Boolean isInvoice;

    @Schema(description = "发票流水号")
    private String invoiceNo;

    @Schema(description = "支付时间")
    private String payTime;

    @Schema(description = "过期时间")
    private String expirationTime;

    @Schema(description = "用户id")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

}
