package com.dsk.common.core.domain.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.AssertFalse;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ToString
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class EnterpriseBussinessClientProjectPageBody extends BasePage {
    /**
     * 企业id
     */
    @NotNull(message = "企业id不能为空")
    private Integer cid;

    /**
     * 客户企业Id
     */
    @NotNull(message = "企业id不能为空")
    private Integer companyId;

    /**
     * 查询关键字
     */
    private String keys;


    public boolean isVaildCid() {
        return 0 == cid || 0 == companyId;
    }

    /**
     * 来源
     */
    private List<String> sources;


    /**
     * 项目类型
     */
    private List<String> projects;

    /**
     * 金额起
     */
    private Double amountStart;

    /**
     * 金额止
     */
    private Double amountEnd;


}
