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 EnterpriseProjectBidNoticePageBody extends BasePage {
    /**
     * 企业id
     */
    @NotNull(message = "企业id不能为空")
    private Integer cid;

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

    /**
     * 类型
     */
    private List<String> tenderStage;

    /*
     * 1金额倒序，2金额正序，3时间倒序，4时间正序
     */
    private Integer sort;

    /**
     * 省份
     */
    private List<Integer> provinceIds;

    /**
     * 市份
     */
    private List<Integer> cityIds;

    /**
     * 县
     */
    private List<Integer> areaIds;


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