package com.org.hktshop.entity.order;


import com.org.hktshop.base.BaseModel;
import com.org.hktshop.target01.TableField;
import com.org.hktshop.target01.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName("hkt_order")
public class HktOrder extends BaseModel {

    @ApiModelProperty("订单序列号")
    @TableField("order_sn")
    private String orderSn;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("送货人")
    @TableField("consignee")
    private String consignee;

    @ApiModelProperty("送货地址")
    @TableField("address_id")
    private String addressId;

    @ApiModelProperty("省会")
    @TableField("province")
    private String province;

    @ApiModelProperty("城市")
    @TableField("city")
    private String city;

    @ApiModelProperty("街道")
    @TableField("district")
    private String district;

    @ApiModelProperty("详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("收货人邮件")
    @TableField("email")
    private String email;

    @ApiModelProperty("邮编")
    @TableField("zipcode")
    private String zipcode;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @TableField("is_sample")
    private String isSample;

    @TableField("image")
    private String image;

    @TableField("sample_status")
    private String sampleStatus;

    @ApiModelProperty("下单联系人")
    @TableField("contacts")
    private String contacts;

    @ApiModelProperty("下单联系人 电话")
    @TableField("contacts_mobile")
    private String contactsMobile;

    @ApiModelProperty("支付code")
    @TableField("pay_code")
    private String payCode;

    @TableField("sample_descp")
    private String sampleDescp;

    @ApiModelProperty("支付方式名称")
    @TableField("pay_name")
    private String payName;

    @ApiModelProperty("支付状态 0-未支付 1-付款中 2-已付款 3-付款失败")
    @TableField("pay_status")
    private String payStatus;

    @ApiModelProperty("支付时间")
    @TableField("pay_time")
    private String payTime;

    @ApiModelProperty("货物价格-实价")
    @TableField("goods_price")
    private String goodsPrice;

    @ApiModelProperty("折扣")
    @TableField("discount")
    private String discount;

    @ApiModelProperty("手动折扣金额")
    @TableField("manual_discount")
    private String manualDiscount;

    @ApiModelProperty("订单金额")
    @TableField("order_amount")
    private String orderAmount;

    @ApiModelProperty("订单总价 = 物品价格 + 物流费用")
    @TableField("total_amount")
    private String totalAmount;

    @ApiModelProperty("手动优惠原因")
    @TableField("readjust_desc")
    private String readjustDesc;

    @ApiModelProperty("配送时间 1不限 2周一到周五 3周六日")
    @TableField("give_time")
    private String giveTime;

    @ApiModelProperty("配送类型 1 物流 2 到店自提 3自主配送")
    @TableField("give_type")
    private Integer giveType;

    @ApiModelProperty("物流编码")
    @TableField("shipping_code")
    private String shippingCode;

    @ApiModelProperty("物流名称")
    @TableField("shipping_name")
    private String shippingName;

    @ApiModelProperty("物流单号")
    @TableField("invoice_no")
    private String invoiceNo;

    @ApiModelProperty("物流费用")
    @TableField("shipping_price")
    private String shippingPrice;

    @ApiModelProperty("物流状态")
    @TableField("shipping_status")
    private Integer shippingStatus;

    @ApiModelProperty("最后发货时间")
    @TableField("shipping_time")
    private String shippingTime;

    @ApiModelProperty("收货确认时间")
    @TableField("confirm_time")
    private String confirmTime;

    @ApiModelProperty("第三方平台交易流水号")
    @TableField("transaction_id")
    private String transactionId;

    @ApiModelProperty("订单bom标识")
    @TableField("bom")
    private String bom;

    @ApiModelProperty("用户备注")
    @TableField("user_note")
    private String userNote;

    @ApiModelProperty("管理员备注")
    @TableField("admin_note")
    private String adminNote;

    @ApiModelProperty("订单状态(0待付款|1已付款|2已发货|3已收货|3已完成|4已取消|5已作废)")
    @TableField("order_status")
    private String orderStatus;

    @TableField("sys_type")
    private Integer sysType;

    @ApiModelProperty("订单结束时间")
//    @TableField("order_expired")
    private String orderExpired;

    @ApiModelProperty("订单创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty("订单修改时间")
    @TableField("modify_time")
    private String modifyTime;

    @ApiModelProperty("门店名")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty("门店id")
    @TableField("warehouse_id")
    private String warehouseId;

    @ApiModelProperty("微信订单号")
    @TableField("out_trande_no")
    private String outTrandeNo;

    @ApiModelProperty("退款编号")
    @TableField("out_reFund_no")
    private String outReFundNo;

    @ApiModelProperty("微信订单编号")
    @TableField("out_return_no")
    private String outReturnNo;

    @ApiModelProperty("退款状态")
    @TableField("return_status")
    private String returnStatus;

    @ApiModelProperty("原价")
    @TableField("original_price")
    private String originalPrice;

    @ApiModelProperty("调价原因")
    @TableField("modify_price_reason")
    private String modifyPriceReason;

    @ApiModelProperty("用户名")
    private String userName;

    private List<HktOrderGoods> hktOrderGoods;

    private String adminSearch;
    private String userSearch;

    @TableField("industry")
    private String industry;
    @TableField("occupation")
    private String occupation;
    @TableField("company")
    private String company;
    private String status;

    @TableField("coupon_id")
    private String couponId;

    @TableField("point_status")
    private String pointStatus;

    @TableField("pay_method")
    private Integer payMethod;

    @TableField("appointment")
    private Integer appointment;

    //优惠金额
    private String couponPrice;

    private String title;
}
