package com.zt.plat.module.qms.resource.material.controller.vo;

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 物料实例分页 Request VO")
@Data
public class MaterialInfomationPageReqVO extends PageParam {

    @Schema(description = "物料大类id", example = "23383")
    private Long productId;

    @Schema(description = "批次id", example = "30468")
    private Long batchId;

    @Schema(description = "存放位置", example = "10632")
    private String locationId;

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

    @Schema(description = "技术参数")
    private String parameter;

    @Schema(description = "负责人id", example = "10411")
    private Long managerUserId;

    @Schema(description = "负责人", example = "张三")
    private String managerUserName;

    @Schema(description = "上架状态,0-未上架；1-已上架，默认0", example = "2")
    private String publishStatus;

    @Schema(description = "领用状态", example = "1")
    private String usageStatus;

    @Schema(description = "开封状态", example = "1")
    private String openStatus;

    @Schema(description = "开封人", example = "李四")
    private String openUserName;

    @Schema(description = "开封人id", example = "3244")
    private Long openUserId;

    @Schema(description = "开封日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] openDate;

    @Schema(description = "到期日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expirationDate;

    @Schema(description = "过期状态")
    private String expirationFlag;

    @Schema(description = "剩余量")
    private String remainingVolume;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    private String remark;

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

    //===================扩展属性==============
    @Schema(description = "大类ids")
    List<Long> productIds;


}