package cn.iocoder.yudao.module.mes.controller.admin.deviceledger.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

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

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备类型分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DeviceLedgerPageReqVO extends PageParam {

    @Schema(description = "设备编号")
    private String deviceCode;

    @Schema(description = "设备名称", example = "赵六")
    private String deviceName;

    @Schema(description = "设备状态 (0-正常, 1-停用, 2-维修, 3-报废)", example = "2")
    private String deviceStatus;

    @Schema(description = "设备品牌")
    private String deviceBrand;

    @Schema(description = "设备型号")
    private String deviceModel;

    @Schema(description = "设备规格")
    private String deviceSpec;

    @Schema(description = "设备类型", example = "1")
    private Long deviceType;

    @Schema(description = "供应商")
    private String supplier;

    @Schema(description = "所属车间")
    private String workshop;

    @Schema(description = "所属系统组织")
    private String systemOrg;

    @Schema(description = "设备位置")
    private String deviceLocation;

    @Schema(description = "设备负责人")
    private String deviceManager;

    @Schema(description = "设备生产日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate productionDate;

    @Schema(description = "设备入厂日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate factoryEntryDate;

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

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

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "id集合导出用")
    private String ids;

    @Schema(description = "关键件id")
    private String componentId;

    @Schema(description = "关联采集设备id")
    private Long  dvId;

}