SparePartVO.java 2.74 KB
package vion.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.liaochong.myexcel.core.annotation.ExcelColumn;
import com.github.liaochong.myexcel.core.annotation.ExcelModel;
import com.github.liaochong.myexcel.core.annotation.MultiColumn;
import lombok.Getter;
import lombok.Setter;
import vion.model.RRepairDevice;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author HlQ
 * @date 2024/1/19
 */
@Getter
@Setter
@ExcelModel(sheetName = "备件申请", includeAllField = false)
public class SparePartVO {
    private Long id;

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

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

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

    /**
     * 合同编号
     */
    @ExcelColumn(order = 1, title = "合同编号")
    private String contractNo;

    /**
     * 合同名称
     */
    @ExcelColumn(order = 2, title = "合同名称")
    private String contractName;

    /**
     * 项目名称(用户填写的)
     */
    @ExcelColumn(order = 0, title = "项目名称")
    private String projectName;

    /**
     * 联系人
     */
    @ExcelColumn(order = 3, title = "联系人")
    private String contact;

    /**
     * 手机号码
     */
    @ExcelColumn(order = 4, title = "电话")
    private String phone;

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

    /**
     * 设备名称
     */
    private String deviceName;

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

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

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

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

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

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

    /**
     * 发货状态 0:未发货 1:已发货
     */
    private Integer shipStatus;

    /**
     * 归还状态 0:未归还 1:全部归还 2:部分归还
     */
    private Integer returnStatus;

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

    /**
     * uuid
     */
    private String uuid;

    /**
     * 微信用户id
     */
    private String openid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private List<RRepairDevice> repairDeviceList;

    /**
     * 设备信息
     */
    @MultiColumn(classType = RRepairDevice.class)
    private RRepairDevice rRepairDevice;
}