package cn.ibizlab.humanresource.core.humanresource.domain;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.humanresource.util.domain.EntityBase;
import cn.ibizlab.humanresource.util.annotation.DEField;
import cn.ibizlab.humanresource.util.enums.DEPredefinedFieldType;
import cn.ibizlab.humanresource.util.enums.DEFieldDefaultValueType;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.humanresource.util.annotation.Audit;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.humanresource.util.domain.EntityMP;

/**
 * 实体[语言能力]
 */
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_HRLANGUAGEABILITY",resultMap = "HRLanguageAbilityResultMap")
public class HRLanguageAbility extends EntityMP implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 更新人
     */
    @DEField(preType = DEPredefinedFieldType.UPDATEMAN)
    @TableField(value = "updateman")
    @JSONField(name = "updateman")
    @JsonProperty("updateman")
    private String updateman;
    /**
     * 语言能力标识
     */
    @DEField(isKeyField=true)
    @TableId(value= "hrlanguageabilityid",type=IdType.ASSIGN_UUID)
    @JSONField(name = "hrlanguageabilityid")
    @JsonProperty("hrlanguageabilityid")
    private String hrlanguageabilityid;
    /**
     * 建立时间
     */
    @DEField(preType = DEPredefinedFieldType.CREATEDATE)
    @TableField(value = "createdate" , fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
    @JsonProperty("createdate")
    private Timestamp createdate;
    /**
     * 语言能力名称
     */
    @TableField(value = "hrlanguageabilityname")
    @JSONField(name = "hrlanguageabilityname")
    @JsonProperty("hrlanguageabilityname")
    private String hrlanguageabilityname;
    /**
     * 建立人
     */
    @DEField(preType = DEPredefinedFieldType.CREATEMAN)
    @TableField(value = "createman" , fill = FieldFill.INSERT)
    @JSONField(name = "createman")
    @JsonProperty("createman")
    private String createman;
    /**
     * 更新时间
     */
    @DEField(preType = DEPredefinedFieldType.UPDATEDATE)
    @TableField(value = "updatedate")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
    @JsonProperty("updatedate")
    private Timestamp updatedate;
    /**
     * 员工标识
     */
    @TableField(value = "hremployeeid")
    @JSONField(name = "hremployeeid")
    @JsonProperty("hremployeeid")
    private String hremployeeid;
    /**
     * 员工姓名
     */
    @TableField(exist = false)
    @JSONField(name = "hremployeename")
    @JsonProperty("hremployeename")
    private String hremployeename;
    /**
     * 附件
     */
    @TableField(value = "attachment")
    @JSONField(name = "attachment")
    @JsonProperty("attachment")
    private String attachment;
    /**
     * 语种
     */
    @TableField(value = "languagetype")
    @JSONField(name = "languagetype")
    @JsonProperty("languagetype")
    private String languagetype;
    /**
     * 外语等级
     */
    @TableField(value = "languagelevel")
    @JSONField(name = "languagelevel")
    @JsonProperty("languagelevel")
    private String languagelevel;
    /**
     * 获取时间
     */
    @TableField(value = "languagetime")
    @JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "languagetime" , format="yyyy-MM-dd")
    @JsonProperty("languagetime")
    private Timestamp languagetime;

    /**
     * 员工
     */
    @JsonIgnore
    @JSONField(serialize = false)
    @TableField(exist = false)
    private cn.ibizlab.humanresource.core.humanresource.domain.HREmployee hremployee;



    /**
     * 设置 [语言能力名称]
     */
    public void setHrlanguageabilityname(String hrlanguageabilityname){
        this.hrlanguageabilityname = hrlanguageabilityname ;
        this.modify("hrlanguageabilityname",hrlanguageabilityname);
    }

    /**
     * 设置 [员工标识]
     */
    public void setHremployeeid(String hremployeeid){
        this.hremployeeid = hremployeeid ;
        this.modify("hremployeeid",hremployeeid);
    }

    /**
     * 设置 [附件]
     */
    public void setAttachment(String attachment){
        this.attachment = attachment ;
        this.modify("attachment",attachment);
    }

    /**
     * 设置 [语种]
     */
    public void setLanguagetype(String languagetype){
        this.languagetype = languagetype ;
        this.modify("languagetype",languagetype);
    }

    /**
     * 设置 [外语等级]
     */
    public void setLanguagelevel(String languagelevel){
        this.languagelevel = languagelevel ;
        this.modify("languagelevel",languagelevel);
    }

    /**
     * 设置 [获取时间]
     */
    public void setLanguagetime(Timestamp languagetime){
        this.languagetime = languagetime ;
        this.modify("languagetime",languagetime);
    }

    /**
     * 格式化日期 [获取时间]
     */
    public String formatLanguagetime(){
        if (this.languagetime == null) {
            return null;
        }
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(languagetime);
    }

}


