package com.fjhx.victoriatourist.entity.jd.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BasePo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 京东订单
 * </p>
 *
 * @author
 * @since 2023-04-20
 */
@Getter
@Setter
@TableName("jd_order")
public class JdOrder extends BasePo {

    /**
     * 订单编号
     */
    @NotNull(message = "客户名称不能为空")
    private String code;

    /**
     * 客户id
     */
    @NotNull(message = "客户id不能为空")
    private Long customerId;

    /**
     * 配送中心
     */
    @NotBlank(message = "配送中心不能为空")
    private String distributionCenter;

    /**
     * 国家
     */
//    @NotBlank(message = "国家id不能为空")
    private Long countryId;

    /**
     * 省
     */
//    @NotBlank(message = "省id不能为空")
    private Long provinceId;

    /**
     * 市
     */
//    @NotBlank(message = "市id不能为空")
    private Long cityId;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为控股")
    private String detailedAddress;

    /**
     * 收件人
     */
    @NotBlank(message = "收件人不能为空")
    private String contactPerson;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空")
    private String contactNumber;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 状态 1未出库 2部分出库 3已出库
     */
    private Integer outStatus;

    /**
     * 业务状态 1=已确认；0=未确认
     */
    private Integer businessStatus;
    /**
     * 出库总数量
     */
    private BigDecimal quantityDelivered;

    /**
     * 导入批次标记
     */
    private Long batchFlag;

    /**
     * 租户id
     */
    private String tenantId;

    //----------------------------京东字段开始------------------------------------
    private Long orderId;
    private Date createdDate;
    private String providerCode;
    private String providerName;
    private BigDecimal totalPrice;
    private Integer deliverCenterId;
    private String deliverCenterName;
    private String purchaserName;
    private String purchaserErpCode;
    private Integer status;
    private String statusName;
    private Boolean isEptCustomized;
    private Integer state;
    private String stateName;
    private Date completeDate;
    private Date updateDate;
    private Integer accountPeriod;
    private String receiverName;
    private String warehousePhone;
    private String address;
    private Integer orderType;
    private String orderTypeName;
    private Integer orderAttribute;
    private String orderAttributeName;
    private Integer confirmState;
    private String confirmStateName;
    private Long customOrderId;
    private Integer wareVariety;
    private Date deliveryTime;
    private Boolean isCanConfirm;
    private Integer isExistActualNumDif;
    private Boolean balanceStatus;
    private Date storageTime;
    private Integer tcFlag;
    private String tcFlagName;
    private Date bookTime;
    //----------------------------京东字段结束------------------------------------

}
