package com.zt.plat.module.base.controller.admin.base.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 static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 工厂分页 Request VO")
@Data
public class FactoryPageReqVO extends PageParam {

    @Schema(description = "公司编码")
    private String companyNumber;

    @Schema(description = "公司名称")
    private String cpnName;

    @Schema(description = "ERP公司名称", example = "张三")
    private String erpCompanyName;

    @Schema(description = "ERP公司编码")
    private String erpCompanyNumber;

    @Schema(description = "工厂名称", example = "赵六")
    private String name;

    @Schema(description = "工厂编码")
    private String number;

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

    @Schema(description = "是否启用")
    private String isEnable;

    @Schema(description = "ERP工厂名称", example = "张三")
    private String erpName;

    @Schema(description = "ERP工厂编码")
    private String erpNumber;

}