package cn.superdesk.uniorder.dto.param.thirdpart.jd;

import cn.superdesk.uniorder.common.excel.model.ExcelRow;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

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

/**
 * 京东对账单中的订单 算是临时 sheet eg 深圳市侨城汇网络科技有限公司-2021年8月1日集采账单.xlsx
 *
 * @author linjinyu
 * @email linjinyu@avic-s.com
 * @date 2021-10-12 11:29:24
 */
@Data
@ToString
public class AccountingUnifiedSupplierOrderJdImportFullVersionExcelRow extends ExcelRow implements Serializable {

	@ApiModelProperty("Id")
	private Long   id;
	@ApiModelProperty("批次Id")
	private String batchId;

	@ApiModelProperty("订单编号 215961349611")
	@ExcelProperty(value = "订单编号", index = 0)
	private String jdOrderSn;
	@ApiModelProperty("原始订单号 215276644920")
	@ExcelProperty(value = "原始订单号", index = 1)
	private String jdOriginalOrderSn;
	@ApiModelProperty("支付号 72927521073111000607247")
	@ExcelProperty(value = "支付号", index = 2)
	private String paymentNo;


	@ApiModelProperty("用户名  侨城汇vsp")
	@ExcelProperty(value = "用户名", index = 3)
	private String jdAccoumtUserName;

	@ApiModelProperty("产品编号 KA")
	@ExcelProperty(value = "产品编号", index = 4)
	private String productNumber;
	@ApiModelProperty("业务类型")
	@ExcelProperty(value = "业务类型", index = 5)
	private String bizType;


	@ApiModelProperty("订单时间 eg 2021-02-28 10:25:41")
	@ExcelProperty(value = "订单时间", index = 6)
	private Date jdCreateTime;
	@ApiModelProperty("支付时间 eg 2021-02-28 10:50:09")
	@ExcelProperty(value = "支付时间", index = 7)
	private Date jdPayTime;
	@ApiModelProperty("完成时间 eg 2021-02-28 17:32:42")
	@ExcelProperty(value = "完成时间", index = 8)
	private Date jdFinishTime;


	@ApiModelProperty("订单金额 159.18")
	@ExcelProperty(value = "订单金额", index = 9)
	private BigDecimal jdOrderAmount;
	@ApiModelProperty("还款金额 0.00")
	@ExcelProperty(value = "还款金额", index = 10)
	private BigDecimal jdRepaymentAmount;
	@ApiModelProperty("退款金额 106.12")
	@ExcelProperty(value = "退款金额", index = 11)
	private BigDecimal jdRefundAmount;
	@ApiModelProperty("应还金额(未结清) 53.06")
	@ExcelProperty(value = "应还金额", index = 12)
	private BigDecimal jdOutStandingAmount;


	@ApiModelProperty("京东 订单状态 ++")
	private Integer jdOrderState;
	@ApiModelProperty("京东 订单状态 已完成 部分退货")
	@ExcelProperty(value = "订单状态", index = 13)
	private String  jdOrderStateName;
	@ApiModelProperty("京东 入账状态 ++")
	private Integer wereAccountedState;
	@ApiModelProperty("京东 入账状态 已入账")
	@ExcelProperty(value = "入账状态", index = 14)
	private String  wereAccountedStateName;
	@ApiModelProperty("出账时间 2021-08-01 00:00:00")
	@ExcelProperty(value = "出账时间", index = 15)
	private Date    outAccountTime;
	@ApiModelProperty("账单编号 202103010000900180 直接")
	@ExcelProperty(value = "账单编号", index = 16)
	private String  jdAccountingOrderSn;


	@ApiModelProperty("京东 结清状态 ++")
	private Integer settledState;
	@ApiModelProperty("京东 结清状态 未结清 ")
	@ExcelProperty(value = "结清状态", index = 17)
	private String  settledStateName;
	@ApiModelProperty("结清时间 未结清为 空串")
	@ExcelProperty(value = "结清时间", index = 18)
	private Date    settledTime;


	@ApiModelProperty("合同编号 ACTBO201811130029")
	@ExcelProperty(value = "合同编号", index = 19)
	private String purchaserContractSn;
	@ApiModelProperty("企业编号 C1004592650")
	@ExcelProperty(value = "企业编号", index = 20)
	private String purchaserVirtCode;
	@ApiModelProperty("企业名称 深圳市侨城汇网络科技有限公司")
	@ExcelProperty(value = "企业名称", index = 21)
	private String purchaserVirtName;


	@ApiModelProperty("发票状态")
	private Integer invoicedState;
	@ApiModelProperty("发票状态 未开")
	@ExcelProperty(value = "发票状态", index = 22)
	private String  invoicedStateName;


	@ApiModelProperty("售后状态")
	private Integer afterSaleState;
	@ApiModelProperty("售后状态 未进售后 售后完成 已进售后")
	@ExcelProperty(value = "售后状态", index = 23)
	private String  afterSaleStateName;


	@ApiModelProperty("还款编号 目前为空")
	@ExcelProperty(value = "还款编号", index = 24)
	private String  repaymentOrderSn;
	@ApiModelProperty("发票时间 目前为空 大概也会是 2021-04-01 00:00:00")
	@ExcelProperty(value = "发票时间", index = 25)
	private Date    invoicedDate;
	@ApiModelProperty("应还日期 2021-04-01 00:00:00")
	@ExcelProperty(value = "应还日期", index = 26)
	private Date    repaymentTime;
	@ApiModelProperty("逾期天数 0")
	@ExcelProperty(value = "逾期天数", index = 27)
	private Integer overdueDays;


	@ApiModelProperty("京东 订单类型")
	private Integer jdOrderType;
	@ApiModelProperty("京东 订单类型 原始订单 子订单")
	@ExcelProperty(value = "订单类型", index = 28)
	private String  jdOrderTypeName;
	@ApiModelProperty("京东 支付类型 ++")
	private Integer jdPayType;
	@ApiModelProperty("京东 支付类型 金采支付")
	@ExcelProperty(value = "支付类型", index = 29)
	private String  jdPayTypeName;


	@ApiModelProperty("京东 发票号(如果开票了会有)")
	@ExcelProperty(value = "发票号", index = 30)
	private String     invoiceNumber;
	@ApiModelProperty("发票代码(大概是发票种类代码吧)")
	@ExcelProperty(value = "发票代码", index = 31)
	private String     invoiceCategoryCode;
	@ApiModelProperty("发票金额(含税)")
	@ExcelProperty(value = "发票金额", index = 32)
	private BigDecimal totalAmountIncludingTax;
	@ApiModelProperty("发票抬头")
	@ExcelProperty(value = "发票抬头", index = 33)
	private String     purchaserCompanyName;


	@ApiModelProperty("发票种类Id 看一下能不能对上统一上的表记录")
	private Integer invoiceTypeId;
	@ApiModelProperty("发票种类")
	@ExcelProperty(value = "发票种类", index = 34)
	private String  invoiceType;

	@ApiModelProperty("创建时间")
	private Date    createTime;
	@ApiModelProperty("操作人 sysUserId")
	private Long    createUserId;
	@ApiModelProperty("操作人 sysUserName")
	private String  createUserName;
	@ApiModelProperty("最近更新时间")
	private Date    updateTime;
	@ApiModelProperty("操作人 sysUserId")
	private Long    updateUserId;
	@ApiModelProperty("操作人 sysUserName")
	private String  updateUserName;

	@ApiModelProperty("处理结果:-1-正常;2-异常;")
	private Integer processResult;
	@ApiModelProperty("处理过程报告")
	private String  processReport;


}