package com.sooka.apply.domain;

import com.sooka.common.utils.StringUtils;

/******************************
 * TODO
 * @author yanhongliang
 * @date 2021-07-07 1:20 PM
 ******************************/

public class IntBo {

    private String id;

    private String intIds;

    private String intCodes;

    private Long deptId;

    private String datetime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIntIds() {
        return intIds;
    }

    public void setIntIds(String intIds) {
        this.intIds = intIds;
    }

    public String getIntCodes() {
        return intCodes;
    }

    public void setIntCodes(String intCodes) {
        this.intCodes = intCodes;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public static boolean check(IntBo intBo) {

        return intBo != null &&
                StringUtils.isNotEmpty(intBo.getIntIds()) &&
                intBo.getDeptId() != 0 &&
                StringUtils.isNotEmpty(intBo.getDatetime()) &&
                intBo.datetime.split("-").length > 2;
    }

    @Override
    public String toString() {
        return "IntBo{" +
                "id='" + id + '\'' +
                ", deptId='" + deptId + '\'' +
                ", datetime='" + datetime + '\'' +
                '}';
    }
}
