package cn.iocoder.yudao.module.pms.controller.admin.maintenance.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.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 IotMaintenancePlanPageReqVO extends PageParam {

    @Schema(description = "组织id", example = "1052")
    private Long deptId;

    @Schema(description = "计划编号 自动生成")
    private String serialNumber;

    @Schema(description = "计划名称 默认以队伍名称生成", example = "张三")
    private String name;

    @Schema(description = "负责人id 多个以逗号分隔")
    private String responsiblePerson;

    @Schema(description = "负责人id 多个以逗号分隔", example = "王五")
    private String responsiblePersonName;

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

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

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

    /**
     * 扩展字段
     */
    @Schema(description = "设备名称 模糊搜索", example = "钻机")
    private String deviceName;
    @Schema(description = "设备编码 模糊搜索", example = "YF620")
    private String deviceCode;
}
