package com.bonus.material.book.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author：liang.chao
 * @Date：2024/11/22 - 16:39
 */
@Data
public class BookCarInfoDto {

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "主键ids")
    private Integer[] ids;

    @ApiModelProperty(value = "订单id")
    private Integer bookId;

    @ApiModelProperty(value = "设备id")
    private String maId;

    @ApiModelProperty(value = "订单编号")
    private String bookCode;

    @ApiModelProperty(value = "订单日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal cost;

    @ApiModelProperty(value = "供应商id")
    private Integer supplier;

    @ApiModelProperty(value = "订单状态 (0：未下单  1：已下单)")
    private String orderStatus;

    @ApiModelProperty(value = "下单用户id")
    private Long orderUser;

    @ApiModelProperty(value = "下单用户手机号")
    private String phoneNumber;

    @ApiModelProperty(value = "被下单企业")
    private String orderCompany;

    @ApiModelProperty(value = "创建人")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private String updater;

    @ApiModelProperty(value = "修改日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String address;

    private List<BookCarDetailDto> detailList;

    private String devType;
}
