package cn.iocoder.yudao.module.pms.controller.admin.iotdeviceallotlog.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备调拨日志 Response VO")
@Data
@ExcelIgnoreUnannotated
public class IotDeviceAllotLogRespVO {

    @Schema(description = "设备编码", example = "YF001")
    @ExcelProperty("设备编码")
    private String deviceCode;

    @Schema(description = "设备名称", example = "钻机")
    @ExcelProperty("设备名称")
    private String deviceName;

    @Schema(description = "调拨前部门", example = "YF001")
    @ExcelProperty("调整前部门")
    private String oldDeptName;

    @Schema(description = "调拨后部门", example = "钻机")
    @ExcelProperty("调整后部门")
    private String newDeptName;

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "13465")
    private Long id;

    @Schema(description = "设备id", example = "10930")
    private Long deviceId;

    @Schema(description = "设备调拨前部门", example = "30278")
    private Long oldDeptId;

    @Schema(description = "设备调拨后部门", example = "27763")
    private Long newDeptId;

    @Schema(description = "设备调拨原因", example = "不好")
    @ExcelProperty("调整原因")
    private String reason;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "创建人姓名", example = "张三")
    @ExcelProperty("调整人")
    private String creatorName;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建时间")
    @ExcelProperty("调整时间")
    private String createTimeStr;

    /**
     * 扩展字段
     */
    @Schema(description = "创建人id", example = "101")
    private String creator;

}