package shop.alien.entity.store.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import shop.alien.entity.store.OrderCouponMiddle;

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

/**
 * 用户订单
 */
@Data
@JsonInclude
public class LifeUserOrderVo {

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    private String userId;

    private String storeId;

    private String quanId;

    private String quanCode;

    private String orderNo;

    private Integer status;

    private Integer purchaseQuantity;

    private Integer couponId;

    private String userPhone;

    private String type;

    private BigDecimal totalFinalPrice;

    private String couponName;

    private String price;

    private String finalPrice;

    private Date buyTime;

    private Date payTime;

    private String payMethod;

    private Date usedTime;

    private Date refundTime;

    private Integer count;

    private String storeName;

    private Integer couponCount;

    private Integer couponType;

    private BigDecimal nominalValue;

    private String imgUrl;

    private String userName;

    private String storeAddress;

    private Integer collectNum;

    private String storeTel;
    @ApiModelProperty(value = "团购/代金券优惠金额")
    private String offprice;
    @ApiModelProperty(value = "团购/代金券原金额")
    private String originalPrice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date totalRefundTime;
    /**
     * 距离
     */
    private String dist;

    @ApiModelProperty(value = "取消时间")
    private Date cancelTime;

    @ApiModelProperty(value = "取消原因")
    private String cancelReason;

    @ApiModelProperty(value = "结束时间")
    private Date finishTime;

    @ApiModelProperty(value = "佣金比例")
    private String commissionRate;

    @ApiModelProperty(value = "订单优惠券中间表")
    List<OrderCouponMiddle> orderCouponMiddleList;

    @ApiModelProperty(value = "退款列表")
    List<OrderCouponMiddle> refundList;

    @ApiModelProperty(value = "预期收入")
    private BigDecimal expectIncome;

    @ApiModelProperty(value = "有效日期类型")
    private String effectiveDateType;

    @ApiModelProperty(value = "有效日期")
    private String effectiveDateValue;

    private Integer singleQty;

    @ApiModelProperty(value = "使用规则")
    private String useRules;

    @ApiModelProperty(value = "适用人数")
    private Integer applicableNum;

    @ApiModelProperty(value = "优惠券额度类型")
    private Integer quotaType;

    @ApiModelProperty(value = "限购数量")
    private BigDecimal quotaValue;

    @ApiModelProperty(value = "预约规则")
    private String reservationRules;

    @ApiModelProperty(value = "订单字符串")
    private String orderStr;

    @ApiModelProperty(value = "营业时间类型")
    private String businessType;
    @ApiModelProperty(value = "营业日")
    private String businessDate;
    @ApiModelProperty(value = "营业开始时间")
    private String startTime;
    @ApiModelProperty(value = "营业结束时间")
    private String endTime;
    @ApiModelProperty(value = "经营类型")
    private String storeType;
    @ApiModelProperty(value = "团购/代金券结束时间")
    private Date endDate;
    @ApiModelProperty(value = "是否评论")
    private Boolean hasComment;
    @ApiModelProperty(value = "营业状态")
    private String businessStatus;

    @ApiModelProperty(value = "营业状态")
    private String storeStatus;

    @ApiModelProperty(value = "商户状态")
    private String abnormalStateFlag;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "达人订单id")
    @TableField("expert_order_id")
    private Integer expertOrderId;

    @ApiModelProperty(value = "订单评价 0：未评价 1：已评价")
    @TableField("order_appraise")
    private Integer orderAppraise;
    
    @ApiModelProperty(value = "订单状态值")
    private String orderStatusValue;

    @ApiModelProperty(value = "图片id")
    private String imgIds;

    @ApiModelProperty(value = "图片地址列表")
    private List<String> imgUrls;
}
