package com.aiotagro.cattletrade.business.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 运送清单编辑DTO
 */
@Data
public class DeliveryEditDto {

    @NotNull(message = "运送清单ID不能为空")
    private Integer deliveryId;

    /** 关联订单ID（多个订单ID用逗号分隔的字符串，如："1,2,3"） */
    private String orderId;

    private String deliveryTitle;

    private Integer ratedQuantity;

    private String supplierId;

    private Integer fundId;

    private Integer driverId;

    private String driverMobile;

    /** 车牌号 */
    private String licensePlate;

    private Integer buyerId;

    private Double buyerPrice;

    private Double salePrice;

    private Double firmPrice;

    private String startLocation;

    private String startLat;

    private String startLon;

    private String endLocation;

    private String endLat;

    private String endLon;

    /**
     * 预计出发时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date estimatedDepartureTime;

    /**
     * 预计到达时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date estimatedArrivalTime;
    
    /** 空车过磅重量 */
    private String emptyWeight;
    /** 装车过磅重量 */
    private String entruckWeight;
    /** 落地过磅重量 */
    private String landingEntruckWeight;
    
    /** 司机运费（元） */
    private java.math.BigDecimal freight;
    
    /** 检疫证号 */
    private String quarantineCertNo;
    
    /** 检疫票照片 */
    private String quarantineTickeyUrl;
    /** 传纸质磅单（双章） */
    private String poundListImg;
    /** 车辆空磅上磅车头照片 */
    private String emptyVehicleFrontPhoto;
    /** 车辆过重磅车头照片 */
    private String loadedVehicleFrontPhoto;
    /** 车辆重磅照片 */
    private String loadedVehicleWeightPhoto;
    /** 驾驶员手持身份证站车头照片 */
    private String driverIdCardPhoto;
    /** 到地纸质磅单（双章） */
    private String destinationPoundListImg;
    /** 到地车辆过重磅车头照片 */
    private String destinationVehicleFrontPhoto;
    
    /** 装车过磅视频 */
    private String entruckWeightVideo;
    /** 空车过磅视频 */
    private String emptyWeightVideo;
    /** 装牛视频 */
    private String cattleLoadingVideo;
    /** 控槽视频 */
    private String controlSlotVideo;
    /** 装完牛绕车一圈视频 */
    private String cattleLoadingCircleVideo;
    /** 卸牛视频 */
    private String unloadCattleVideo;
    /** 到地过磅视频 */
    private String destinationWeightVideo;
}
