package com.github.wxiaoqi.security.admin.dto;

import com.github.wxiaoqi.security.common.vo.PageParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author libin
 * @version 1.0
 * @description
 * @data 2019/11/26 17:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StaffStatisticsFindDTO  extends PageParam {
    private Date startDate;
    private Long startTime;
    private Long endTime;
    private Date endDate;
    private String companyName;
    private String postionName;
    private Integer userPostionId;
    private Integer companyId;
    private List<Integer> userIds;

    public Long getStartTime() {
        return startDate==null?0:startDate.getTime();
    }

    public Long getEndTime() {
        return endDate==null?0:endDate.getTime();
    }
}
