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

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

import java.math.BigDecimal;
import java.time.LocalDateTime;

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 IotMainWorkOrderDetailsPageReqVO extends PageParam {

    @Schema(description = "保养计划id", example = "32395")
    private Long planId;

    @Schema(description = "保养工单id", example = "26461")
    private Long workOrderId;

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

    @Schema(description = "设备资产编号")
    private String deviceAssetNumber;

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

    @Schema(description = "设备类别")
    private String deviceCategory;

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

    @Schema(description = "当前运行公里数(km)")
    private BigDecimal runningKilometers;

    @Schema(description = "当前运行时间(小时)")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private BigDecimal[] runningTime;

    @Schema(description = "自然日期(天)")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private BigDecimal[] naturalDate;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

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

    @Schema(description = "状态 0启用  1停用", example = "1")
    private Integer status;

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

}