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

import cn.hutool.json.JSONObject;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 物料大类查询全部数据 Request VO")
@Data
public class MaterialProductQueryVO {

    @Schema(description = "category-分类，data-大类sku，空-全部数据")
    private String nodeType;

    @Schema(description = "名称", example = "ZT")
    private String name;

    @Schema(description = "允许按量领取,1-领用时输入量，按量领取；0-领用时不能输入量，整个领走")
    private Integer enablePartial;

    @Schema(description = "开封后保质期是否变化,1-是，0-否")
    private Integer openDueFlag;

    @Schema(description = "是否危险品,1-是，0-否")
    private Integer hazardous;

    @Schema(description = "是否标准溶液,1-是，0-否")
    private Integer standardSolutionFlag;

    @Schema(description = "是否标准物质,1-是，0-否")
    private Integer standardMaterialFlag;

    @Schema(description = "禁用标识")
    private Integer cancelFlag;

    @Schema(description = "是否检化验,1-是，0-否")
    private Integer assayFlag;

    @Schema(description = "是否进行库存预警,1-是，0-否")
    private Integer inventoryAlarmFlag;

    @Schema(description = "分类其他配置")
    private String categoryCustomConfig;

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

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

}