package com.goafanti.business.bo;

import com.goafanti.common.constant.ErrorConstants;
import com.goafanti.common.model.RestrictProject;
import com.goafanti.common.utils.Param;

import javax.validation.constraints.NotNull;

public class InputRestrictProject extends RestrictProject {
    private Integer pageSize;
    private Integer pageNo;
    private String userName;

    private String projectName;

    private String startTime;
    private String endTime;

    private Integer type;
    @NotNull(message = "{"+ ErrorConstants.PARAM_EMPTY_ERROR +"}")
    @Param(name="跟进进度")
    private Integer followSituation;
    @NotNull(message = "{"+ ErrorConstants.PARAM_EMPTY_ERROR +"}")
    @Param(name="客户状态")
    private Integer customerStatus;


    public Integer getFollowSituation() {
        return followSituation;
    }

    public void setFollowSituation(Integer followSituation) {
        this.followSituation = followSituation;
    }

    public Integer getCustomerStatus() {
        return customerStatus;
    }

    public void setCustomerStatus(Integer customerStatus) {
        this.customerStatus = customerStatus;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public Integer getType() {
        return type;
    }

    @Override
    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public InputRestrictProject() {
    }
    public InputRestrictProject(String uid, String aid, String pid) {
        setAid(aid);
        setPid(pid);
        setUid(uid);
    }

    /**
     *
     * @param uid 客户编号
     * @param aid 所属人编号
     */
    public InputRestrictProject(String uid, String aid) {
        setAid(aid);
        setUid(uid);
    }
}
