package com.engine.salary.report.entity.param;

import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;

import java.util.Collection;

/**
 * 人员查询条件
 */
@Data
@Accessors(chain = true)
public class SalaryEmployeeQueryParam {

   //人员名称
    private String usernameLike;

    //部门
    private Collection<Long> departmentIds;

    //岗位
    private Collection<Long> positionIds;

    //状态
    private String personnelStatus;

    //工号
    private String jobNumLike;

    public boolean isEmpty(){
        return StringUtils.isEmpty(usernameLike)
                && CollectionUtils.isEmpty(departmentIds)
                && CollectionUtils.isEmpty(positionIds)
                && StringUtils.isEmpty(personnelStatus)
                && StringUtils.isEmpty(jobNumLike);
    }
}
