package cn.iocoder.yudao.module.pms.controller.admin.iotbom.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 = "管理后台 - PMS BOM 关系分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotBomPageReqVO extends PageParam {

    @Schema(description = "BOM名称", example = "李四")
    private String name;

    @Schema(description = "BOM编码")
    private String code;

    @Schema(description = "父BOM id 顶级为0", example = "3918")
    private Long parentId;

    @Schema(description = "子节点id 逗号分隔")
    private String childIds;

    @Schema(description = "层级")
    private Integer level;

    @Schema(description = "所属设备分类", example = "23419")
    private Long deviceCategoryId;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "1维修 2保养 维修+保养", example = "1")
    private String type;

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

    @Schema(description = "是否叶子节点 0是 1否")
    private Integer leafFlag;

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

    @Schema(description = "版本")
    private Integer version;

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

    @Schema(description = "设备名称")
    private String deviceName;
    @Schema(description = "设备编码")
    private String deviceCode;
    @Schema(description = "设备状态")
    private String deviceStatus;
    @Schema(description = "资产性质")
    private String assetProperty;
}