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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
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)
@ApiModel(value = "OrderGoodsParam对象", description = "订单商品查询参数")
public class OrderGoodsParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}
