package cn.iocoder.yudao.module.pms.controller.admin.maintain.materials.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
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 IotMaintainMaterialsPageReqVO extends PageParam {

    @Schema(description = "维修工单id", example = "2757")
    private Long maintainId;

    @Schema(description = "维修项id", example = "10896")
    private Long bomId;

    @Schema(description = "保养工单明细设备BOM节点id", example = "6271")
    private Long bomNodeId;

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

    @Schema(description = "物料编码")
    private String materialCode;

    @Schema(description = "物料名称", example = "芋艿")
    private String materialName;

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

    @Schema(description = "单价(元)", example = "1603")
    private BigDecimal unitPrice;

    @Schema(description = "总金额(元)", example = "1015")
    private BigDecimal totalPrice;

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

    @Schema(description = "物料来源 (SAP库存 本地库存...)")
    private String materialSource;

    @Schema(description = "库存地点")
    private String inventoryAddress;

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

    @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;

}
