package cn.iocoder.yudao.module.pms.controller.admin.iotmaterialrequisitiondetail.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 static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - PMS 物料领用明细分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotMaterialRequisitionDetailPageReqVO extends PageParam {

    @Schema(description = "物料领用单id", example = "19409")
    private Long requisitionId;

    @Schema(description = "工厂id", example = "19409")
    private Long factoryId;

    @Schema(description = "costCenterId", example = "19409")
    private Long costCenterId;

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

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

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

    @Schema(description = "领用数量")
    private BigDecimal requisitionQuantity;

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

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

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

    @Schema(description = "规格型号")
    private String specification;

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

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

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

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

}