package cn.iocoder.yudao.module.contract.controller.admin.customercontract.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 static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 销售合同信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CustomerContractPageReqVO extends PageParam {

    @Schema(description = "合同编号，年月日+uuid")
    private String customerContractCode;

    @Schema(description = "合同名称", example = "合同名称")
    private String customerContractName;

    @Schema(description = "是否为框架合同 0否 1是", example = "0")
    private Integer isFrameContract;

    @Schema(description = "客户id", example = "客户id")
    private String customerId;

    @Schema(description = "合同开始日期", example = "2024-08-12,2024-08-12")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String[] startDate;

    @Schema(description = "合同结束日期", example = "2024-08-12,2024-08-12")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String[] endDate;

    @Schema(description = "合同负责人", example = "5122")
    private String ownerEmployeeName;

    @Schema(description = "负责人部门", example = "29650")
    private Long deptId;

    @Schema(description = "合同状态：0、未归档；1、已归档；2、已完结", example = "2")
    private String contractStatus;

    @Schema(description = "是否关闭 0开启 1关闭")
    private Integer closed;

    @Schema(description = "是否终止 0否 1是")
    private Integer terminate;

}