package cn.iocoder.yudao.module.system.controller.admin.biz.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @Author: jinyd
 * @CreateTime: 2024/11/21  9:47
 * @Description:
 * @Version: 4.0
 */


@Schema(description = "管理后台 - 供应商信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SupplierInfoPageReqVO extends PageParam {

    @Schema(description = "供应商名称", example = "李四")
    private String supplierName;

    @Schema(description = "类型名称", example = "19426")
    private String typeName;

    @Schema(description = "联系人")
    private String contacts;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "经营范围")
    private String businessScope;

    @Schema(description = "账户名称", example = "李四")
    private String accountName;

    @Schema(description = "开户行")
    private String depositBank;

    @Schema(description = "银行账号", example = "21991")
    private String bankAccount;

    @Schema(description = "0-正常，1-禁用", example = "1")
    private Integer status;

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

    /**
     * 供应商编号
     */
    @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    private String supplierNumber;
    /**
     * 供应商简称
     */
    @Schema(description = "供应商简称", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxxx")
    private String supplierNickName;
    /**
     * 业务员
     */
    @Schema(description = "业务员", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxxx")
    private String operator;
    /**
     * 机构id
     */
    @Schema(description = "机构id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21991")
    private Long tenantId;

}
