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 CompanyRelativityPageReqVO extends PageParam {

    @Schema(description = "ERP公司编码;一个供应链公司，可以关联多个ERP公司")
    private String erpNumber;

    @Schema(description = "供应链公司编码")
    private String number;

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

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

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

    @Schema(description = "负责人")
    private String manager;

    @Schema(description = "部门来源(字典编码：sply_cpn_rel_sts)(1:外部部门;2:同步部门;)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String departmentSource;

}