package com.gxwebsoft.shop.param;

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

import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单查询参数
 *
 * @author 科技小王子
 * @since 2024-05-14 13:20:04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "OrderParam对象", description = "订单查询参数")
public class OrderParam extends BaseParam {
  private static final long serialVersionUID = 1L;

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

  @ApiModelProperty(value = "订单类型，0商城订单 1客户预定 2俱乐部训练场 3活动订场")
  private Integer type;

  @ApiModelProperty(value = "下单渠道,0普通预定 1俱乐部训练场 3活动订场")
  @QueryField(type = QueryType.EQ)
  private Integer channel;

  @ApiModelProperty(value = "订单编号")
  @QueryField(type = QueryType.EQ)
  private String orderNo;

  @ApiModelProperty(value = "微信支付订单号")
  private String transactionId;

  @ApiModelProperty(value = "微信退款订单号")
  private String refundOrder;

  @ApiModelProperty(value = "商户ID")
  @QueryField(type = QueryType.EQ)
  private Integer merchantId;

  @ApiModelProperty(value = "商户名称")
  @QueryField(type = QueryType.EQ)
  private String merchantName;

  @ApiModelProperty(value = "商户编号")
  @QueryField(type = QueryType.EQ)
  private String merchantCode;

  @ApiModelProperty(value = "使用的优惠券id")
  @QueryField(type = QueryType.EQ)
  private Integer couponId;

  @ApiModelProperty(value = "使用的会员卡id")
  @QueryField(type = QueryType.EQ)
  private String cardId;

  @ApiModelProperty(value = "用户会员卡ID")
  @QueryField(type = QueryType.EQ)
  private Integer userCardId;

  @ApiModelProperty(value = "关联管理员id")
  @QueryField(type = QueryType.EQ)
  private Integer adminId;

  @ApiModelProperty(value = "核销管理员id")
  @QueryField(type = QueryType.EQ)
  private Integer confirmId;

  @ApiModelProperty(value = "IC卡号")
  private String icCard;

  @ApiModelProperty(value = "真实姓名")
  private String realName;

  @ApiModelProperty(value = "手机号码")
  private String phone;

  @ApiModelProperty(value = "订单总额")
  @QueryField(type = QueryType.EQ)
  private BigDecimal totalPrice;

  @ApiModelProperty(value = "减少的金额，使用VIP会员折扣、优惠券抵扣、优惠券折扣后减去的价格")
  @QueryField(type = QueryType.EQ)
  private BigDecimal reducePrice;

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

  @ApiModelProperty(value = "用于统计")
  @QueryField(type = QueryType.EQ)
  private BigDecimal price;

  @ApiModelProperty(value = "共几件")
  @QueryField(type = QueryType.EQ)
  private Integer totalNum;

  @ApiModelProperty(value = "价钱，用于积分赠送")
  @QueryField(type = QueryType.EQ)
  private BigDecimal money;

  @ApiModelProperty(value = "退款金额")
  @QueryField(type = QueryType.EQ)
  private BigDecimal refundMoney;

  @ApiModelProperty(value = "教练价格")
  @QueryField(type = QueryType.EQ)
  private BigDecimal coachPrice;

  @ApiModelProperty(value = "教练id")
  @QueryField(type = QueryType.EQ)
  private Integer coachId;

  @ApiModelProperty(value = "0余额支付, 1微信支付，2积分，3支付宝，4现金，5POS机，6VIP月卡，7VIP年卡，8VIP次卡，9IC月卡，10IC年卡，11IC次卡，12免费，13VIP充值卡，14IC充值卡，15积分支付，16VIP季卡，17IC季卡")
  @QueryField(type = QueryType.EQ)
  private Integer payType;

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

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

  @ApiModelProperty(value = "发货状态 10未发货 20已发货 30部分发货")
  @QueryField(type = QueryType.EQ)
  private Integer deliveryStatus;

  @ApiModelProperty(value = "发货时间")
  private Date deliveryTime;

  @ApiModelProperty(value = "优惠类型：0无、1抵扣优惠券、2折扣优惠券、3、VIP月卡、4VIP年卡，5VIP次卡、6VIP会员卡、7IC月卡、8IC年卡、9IC次卡、10IC会员卡、11免费订单、12VIP充值卡、13IC充值卡、14VIP季卡、15IC季卡")
  @QueryField(type = QueryType.EQ)
  private Integer couponType;

  @ApiModelProperty(value = "优惠说明")
  private String couponDesc;

  @ApiModelProperty(value = "二维码地址，保存订单号，支付成功后才生成")
  private String qrcode;

  @ApiModelProperty(value = "vip月卡年卡、ic月卡年卡回退次数")
  @QueryField(type = QueryType.EQ)
  private Integer returnNum;

  @ApiModelProperty(value = "vip充值回退金额")
  @QueryField(type = QueryType.EQ)
  private BigDecimal returnMoney;

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

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

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

  @ApiModelProperty(value = "退款时间")
  private String refundTime;

  @ApiModelProperty(value = "申请退款时间")
  private String refundApplyTime;

  @ApiModelProperty(value = "对账情况：0=未对账；1=已对账；3=已对账，金额对不上；4=未查询到该订单")
  @QueryField(type = QueryType.EQ)
  private Integer checkBill;

  @ApiModelProperty(value = "订单是否已结算(0未结算 1已结算)")
  @QueryField(type = QueryType.EQ)
  private Integer isSettled;

  @ApiModelProperty(value = "系统版本号 0当前版本 value=其他版本")
  @QueryField(type = QueryType.EQ)
  private Integer version;

  @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;

  @ApiModelProperty(value = "下单时间")
  private Date createTime;

  @ApiModelProperty(value = "当前时间")
  @QueryField(type = QueryType.GT)
  private Date expirationTime;

}
