package cn.iocoder.yudao.module.rescue.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

@Data
public class DriverInfoExportVO {

    @ExcelProperty("员工账号")
    private String username;

    @ExcelProperty("员工姓名")
    private String nickname;

    @ExcelProperty("手机号")
    private String mobile;

    @ExcelIgnore
    private String sex;

    @ExcelProperty("性别")
    private String sexStr;

    @ExcelProperty("岗位")
    private String roleNames;



    public void setSex(String sex) {
        this.sex = sex;
        // 设置转换后的性别字符串
        if ("0".equals(sex)) {
            this.sexStr = "男";
        } else if ("1".equals(sex)) {
            this.sexStr = "女";
        } else {
            this.sexStr = "未知";
        }
    }
}
