package com.hzs.sale.order.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.Excel;
import com.hzs.sale.order.dto.SaOrderSyncBodyDetailDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 订单同步记录VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SaOrderSyncVO implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 主键ID
   */
  private Long pkId;

  /**
   * 订单编号
   */
  @Excel(name = "订单编号")
  private String orderCode;

  /**
   * 产品明细列表
   */
  private String bodyDetail;
  private List<SaOrderSyncBodyDetailDTO> orderProductDetail;


  /**
   * 创建时间
   */
  @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date creationTime;

  /**
   * 同步状态（1=失败）
   */
  @Excel(name = "同步状态", readConverterExp = "1=失败,0=成功")
  private Integer status;

  /**
   * 同步状态描述
   */
  private String statusVal;

}
