package com.sckw.system.model.report;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.excel.annotation.ExcelContext;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author czh
 * @desc 用户导出
 * @date 2023/9/14
 */
@Data
@ExcelContext(fileName = "员工账号", sheetName = "员工账号")
public class KwsUserExcel implements Serializable {

    @Serial
    private static final long serialVersionUID = -2268347072252833277L;

    @ExcelProperty(value = "状态")
    private String status;

    @ExcelProperty(value = "姓名")
    private String name;

    @ExcelProperty(value = "账号")
    private String account;

    @ExcelProperty(value = "岗位角色")
    private String roleName;

    @ExcelProperty(value = "所属机构")
    private String deptName;

    @ExcelProperty(value = "创建人")
    private String createByName;

    @ExcelProperty(value = "创建时间")
    @JsonFormat(locale="zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ExcelProperty(value = "更新时间")
    @JsonFormat(locale="zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ExcelProperty(value = "备注")
    private String remark;

}
