package cn.ey.biz.module.system.controller.admin.user.vo.user;

import cn.ey.biz.common.pojo.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

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

import static cn.ey.biz.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("管理后台 - 用户分页 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class UserPageTreeReqVO extends PageParam {

    @ApiModelProperty(value = "用户账号", example = "xxx", notes = "模糊匹配")
    private String username;


    @ApiModelProperty(value = "用户昵称", example = "xxx", notes = "模糊匹配")
    private String nickName;

    @ApiModelProperty(value = "手机号码", example = "xxx", notes = "模糊匹配")
    private String mobile;

    @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类")
    private Integer status;

    @ApiModelProperty(value = "创建时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String createStartTime;

    @ApiModelProperty(value = "创建时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String createEndTime;

    @ApiModelProperty(value = "部门编号", example = "1024", notes = "同时筛选子部门")
    private Long deptId;

    @ApiModelProperty(value = "mrCode", example = "xxx", notes = "精确匹配")
    private List<String> mrCode;

    @ApiModelProperty(value = "ouCode", example = "xxx", notes = "精确匹配")
    private List<String> ouCode;

    @ApiModelProperty(value = "muCode", example = "xxx", notes = "精确匹配")
    private List<String> muCode;


    @ApiModelProperty(value = "公司邮箱地址", example = "xxx", notes = "精确匹配")
    private String businessEmail;


    @ApiModelProperty(value = "gpn", example = "xxx", notes = "精确匹配")
    private String gpn;


    @ApiModelProperty(value = "lpn", example = "xxx", notes = "精确匹配")
    private String lpn;


    @ApiModelProperty(value = "gui", example = "xxx", notes = "精确匹配")
    private String gui;


    @ApiModelProperty(value = "员工状态", example = "xxx", notes = "精确匹配")
    private String employeeStatus;


    @ApiModelProperty(value = "员工分类", example = "xxx", notes = "精确匹配")
    private String employeeClass;


    @ApiModelProperty(value = "员工类型", example = "xxx", notes = "精确匹配")
    private String employeeType;

    //sl_code->ssl_code->competency_code->smu_code
    //dict_business_unit
   //marketSegmentCode、cityCode、buCode

    @ApiModelProperty(value = "业务线code", example = "xxx", notes = "精确匹配")
    private List<UserServiceLinePageReqVO> serviceLineTree;

    @ApiModelProperty(value = "子业务线code", example = "xxx", notes = "精确匹配")
    private List<UserRegionTreePageReqVO> regionTree;

    private Set<Long> deptIds;
}
