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

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

    @Schema(description = "物料名称", example = "张三")
    private String name;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "单价", example = "28614")
    private BigDecimal price;

    @Schema(description = "物料来源", example = "2")
    private String sourceType;

    @Schema(description = "消耗数量", example = "30700")
    private BigDecimal depleteCount;

    @Schema(description = "总库存数量", example = "5934")
    private BigDecimal totalCount;

    @Schema(description = "SAP系统中的物料唯一编号")
    private String sapCode;

    @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")
    private Long deptId;

}
