RepairRecDTO.java 2.36 KB
package vion.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author HlQ
 * @date 2024/1/24
 */
@Getter
@Setter
public class RepairRecDTO extends BaseDTO {
    private Long id;

    /**
     * 集团id
     */
    private Long accountId;

    /**
     * 项目id
     */
    private Long storeId;

    /**
     * 合同id
     */
    private Long contractId;

    /**
     * 合同编号
     */
    private String contractNo;

    /**
     * 项目名称(用户填写的)
     */
    private String projectName;

    /**
     * 联系人
     */
    private String contact;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 快递单号(用户填写的,他/她寄出去的设备的快递单号)
     */
    private String userTrackingNumber;

    /**
     * 是否借用备件 0:否 1:是
     */
    private Integer borrowToggle;

    /**
     * 设备数量
     */
    private Integer deviceNum;

    /**
     * 收货地址
     */
    private String shippingAddress;

    /**
     * 收货联系人
     */
    private String receivingContact;

    /**
     * 收货联系电话
     */
    private String receivingPhone;

    /**
     * 发货日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate shipDate;

    /**
     * 快递公司
     */
    private String courierCompany;

    /**
     * 快递单号
     */
    private String trackingNumber;

    /*
     * 状态 1:运输中 2:维修中 3:已发货
     */
    private Integer status;

    private String uuid;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 备注
     */
    private String remark;

    private MultipartFile[] files;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeStart;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeEnd;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate shipDateStart;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate shipDateEnd;

    private String deviceName;
    private String deviceNo;
}