package cn.iocoder.yudao.module.pms.controller.admin.iotdevicematerial.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 java.util.List;

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

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

    @Schema(description = "所属设备", example = "10736")
    private Long deviceId;

    @Schema(description = "设备BOM节点名称", example = "芋艿")
    private String name;

    @Schema(description = "设备BOM节点id", example = "24906")
    private Long bomNodeId;

    @Schema(description = "设备BOM节点编码")
    private String code;

    @Schema(description = "物料id", example = "27947")
    private Long materialId;

    @Schema(description = "数量")
    private BigDecimal quantity;

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

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

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

    /**
     * 扩展字段
     */
    @Schema(description = "设备id 集合", example = "27947,12345")
    private List<Long> deviceIds;

    @Schema(description = "bom节点id 集合", example = "27947,12345")
    private List<Long> bomNodeIds;
}