package com.zt.plat.module.base.api.departmentmaterial.dto;

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;

/**
 * 组织架构物料分页 Request DTO
 */
@Data
public class DepartmentMaterialPageReqDTO extends PageParam {

    @Schema(description = "物料信息ID", example = "3923")
    private Long infomationId;

    @Schema(description = "物料信息ID集合(内部使用)")
    private List<Long> infomationIds;

    @Schema(description = "物料分类ID", example = "30114")
    private Long classesId;

    @Schema(description = "部门ID", example = "1001")
    private Long deptId;

    @Schema(description = "字典数据值-物料类型")
    private String dictionaryDataValue;

    @Schema(description = "状态编码", example = "1")
    private String status;

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

    @Schema(description = "物料名称")
    private String materialName;

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

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

    @Schema(description = "是否是公司")
    private Boolean isCompany;
}
