NewDriverUpdateDTO.java 5.92 KB
package com.ruoyi.domain.driver.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@ApiModel(value = "司机信息的修改DTO")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class NewDriverUpdateDTO implements java.io.Serializable {
    private static final long serialVersionUID = 530049121L;

    /***主键*/
    @ApiModelProperty(value = "主键", example = "1")
    private Integer id;
    /***工号*/
    @ApiModelProperty(value = "工号")
    private String jobCode;
    /***公司编码*/
    @ApiModelProperty(value = "公司编码")
    private String companyCode;
    /***分公司编码*/
    @ApiModelProperty(value = "分公司编码")
    private String brancheCompanyCode;
    /***姓名*/
    @ApiModelProperty(value = "姓名")
    private String personnelName;
    /***运营服务证书号*/
    @ApiModelProperty(value = "运营服务证书号")
    private String papersCode;
    /***一卡通工作卡号*/
    @ApiModelProperty(value = "一卡通工作卡号")
    private String icCardCode;
    /***性别*/
    @ApiModelProperty(value = "性别")
    private String personnelType;
    /***所属岗位/工种*/
    @ApiModelProperty(value = "所属岗位/工种")
    private String posts;
    /***身份证*/
    @ApiModelProperty(value = "身份证")
    private String card;
    /***联系电话*/
    @ApiModelProperty(value = "联系电话")
    private String telphone;
    /***RFID 人卡IC号*/
    @ApiModelProperty(value = "RFID 人卡IC号")
    private String icRfid;
    /***RFID 人卡ID号(10进制)*/
    @ApiModelProperty(value = "RFID 人卡ID号(10进制)")
    private String idRfid;
    /***RFID 标签号*/
    @ApiModelProperty(value = "RFID 标签号")
    private String tagRfid;
    /***备注*/
    @ApiModelProperty(value = "备注")
    private String remark;
    /***线路名称*/
    @ApiModelProperty(value = "线路名称")
    private String lineName;
    /***线路编码*/
    @ApiModelProperty(value = "线路编码")
    private String lineCode;
    /***是否进行人脸注册 1 注册 2 未注册*/
    @ApiModelProperty(value = "是否进行人脸注册 1 注册 2 未注册", example = "1")
    private Integer faceSignIn;
    /***头像*/
    @ApiModelProperty(value = "头像")
    private String image;
    /***更新日期*/
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /***注册设备列表*/
    @ApiModelProperty(value = "注册设备列表")
    private String signInEquipment;
    /***车队名称*/
    @ApiModelProperty(value = "车队名称")
    private String fleetName;

    /***人脸识别特征*/
    @ApiModelProperty(value = "人脸识别特征")
    private java.lang.String faceFeature;
    /***手环mac地址*/
    @ApiModelProperty(value = "手环mac地址")
    private java.lang.String blueTooth;
    /***同步结果状态;0成功,1失败*/
    @ApiModelProperty(value = "同步结果状态;0成功,1失败", example = "1")
    private java.lang.Integer integer;
    /***同步内容*/
    @ApiModelProperty(value = "同步内容")
    private java.lang.String syncontent;
    /***物理卡号*/
    @ApiModelProperty(value = "物理卡号")
    private java.lang.String csn;
    /***操作人员*/
    @ApiModelProperty(value = "操作人员")
    private String operator;

    public void clearStrEmpty() {
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.jobCode)) {
            this.jobCode = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.companyCode)) {
            this.companyCode = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.brancheCompanyCode)) {
            this.brancheCompanyCode = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.personnelName)) {
            this.personnelName = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.papersCode)) {
            this.papersCode = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.icCardCode)) {
            this.icCardCode = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.personnelType)) {
            this.personnelType = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.posts)) {
            this.posts = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.card)) {
            this.card = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.telphone)) {
            this.telphone = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.icRfid)) {
            this.icRfid = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.idRfid)) {
            this.idRfid = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.tagRfid)) {
            this.tagRfid = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.remark)) {
            this.remark = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.lineName)) {
            this.lineName = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.lineCode)) {
            this.lineCode = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.image)) {
            this.image = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.signInEquipment)) {
            this.signInEquipment = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.fleetName)) {
            this.fleetName = null;
        }
        if (org.apache.commons.lang3.StringUtils.isEmpty(this.operator)) {
            this.operator = null;
        }
    }

    @Override
    public String toString() {
        return com.alibaba.fastjson2.JSON.toJSONString(this);
    }
}