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_invoice")
public class HktOrderInvoice extends BaseModel {

//    @ApiModelProperty("订单id")
//    @TableField("order_id")
//    private String orderId;

    @ApiModelProperty("订单编码")
    @TableField("order_sn")
    private String orderSn;

    @ApiModelProperty("0 不开票 1 普通票 2 专用票")
    @TableField("category")
    private String category;

    @ApiModelProperty("发票类型(1电子发票|2纸质发票)")
    @TableField("type")
    private String type;

    @ApiModelProperty("开票类型(1电子元器件)")
    @TableField("open_type")
    private String openType;

    @ApiModelProperty("开票对象(1个人|2单位)")
    @TableField("open_obj")
    private String openObj;

    @ApiModelProperty("发票抬头")
    @TableField("title")
    private String title;

    @ApiModelProperty("开票纳税人识别号")
    @TableField("open_taxpayer")
    private String openTaxpayer;

    @ApiModelProperty("经验地址")
    @TableField("operating_address")
    private String operatingAddress;

    @ApiModelProperty("经验电话")
    @TableField("operating_tel")
    private String operatingTel;

    @ApiModelProperty("开户行所属地")
    @TableField("open_bank_address")
    private String openBankAddress;

    @ApiModelProperty("开户行账户")
    @TableField("open_bank_account")
    private String openBankAccount;

    @ApiModelProperty("电子票url")
    @TableField("invoice_url")
    private String invoiceUrl;

    @ApiModelProperty("发票人收件名")
    @TableField("collect_name")
    private String collectName;

    @ApiModelProperty("发票人邮箱")
    @TableField("collect_email")
    private String collectEmail;

    @ApiModelProperty("发票人联系电话")
    @TableField("collect_mobile")
    private String collectMobile;

    @ApiModelProperty("发票人联系地址")
    @TableField("collect_address")
    private String collectAddress;

    @ApiModelProperty("1 已开票 0 未开票  2  申请中")
    @TableField("status")
    private String status;

    @ApiModelProperty("1 合晶 2 合科泰")
    @TableField("sys_type")
    private Integer sysType;

    @ApiModelProperty("开票时间")
    @TableField("invoice_time")
    private String invoiceTime;


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

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

    @ApiModelProperty("商品总价")
    private String orderAmount;

    @ApiModelProperty("开票公司名")
    private String openName;

    private List<HktOrderGoods> hktOrderGoods;

    @ApiModelProperty("总价")
    private String totalAmount;

    private String search;
}
