package cn.iocoder.yudao.module.supplier.controller.admin.product.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

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

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

    @Schema(description = "供应商编号 自动生成")
    private String code;

    @Schema(description = "供应商名称", example = "张三")
    private String name;

    @Schema(description = "供应商分类")
    private String classification;

    @Schema(description = "公司类型", example = "1")
    private String type;

    @Schema(description = "供应商性质")
    private String nature;

    @Schema(description = "社会信用代码")
    private String creditCode;

    @Schema(description = "纳税人识别号")
    private String tin;

    @Schema(description = "法人")
    private String corporation;

    @Schema(description = "成立日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] incorporationDate;

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

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

    @Schema(description = "注册资金 单位：万元")
    private BigDecimal registeredCapital;

    @Schema(description = "年营业额 单位：万元")
    private BigDecimal annualTurnove;

    @Schema(description = "公司规模 数据字典")
    private String size;

    @Schema(description = "商品状态: 1 草稿 2活动 3 关闭", example = "1")
    private Integer status;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "工作流编号", example = "14558")
    private String processInstanceId;

    @Schema(description = "审批状态 未提交、审批中、审批通过、审批不通过、已取消", example = "2")
    private Integer auditStatus;

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

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "客商性质")
    private String customerNature;
    @Schema(description = "sap编码")
    private String sapCode;
}
