package com.zcloud.basic.info.domain.model;

import com.jjb.saas.framework.domain.model.BaseE;
import com.zcloud.gbscommon.utils.Tools;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * web-domain
 *
 * @Author zhangyue
 * @Date 2025-11-06 19:15:37
 */
@Data
public class UserEmploymentLogE extends BaseE {
    //主键
    private Long id;
    //业务主键id
    private String userEmploymentLogId;
    //用户id
    private Long userId;
    //企业id
    private Long corpinfoId;
    //企业名称
    private String corpinfoName;
    //部门id
    private Long departmentId;
    //部门名称
    private String departmentName;
    //岗位id
    private Long postId;
    //岗位名称
    private String postName;
    //入职状态，1-在职 0-离职
    private Integer employmentFlag;
    //是否删除
    private String deleteEnum;
    //租户id
    private Long tenantId;
    //组织id
    private Long orgId;
    //版本号
    private Integer version;
    //创建时间
    private LocalDateTime createTime;
    //修改时间
    private LocalDateTime updateTime;
    //创建人id
    private Long createId;
    //修改人id
    private Long updateId;
    //创建人
    private String createName;
    //修改人
    private String updateName;
    //备注
    private String remarks;
    //环境
    private String env;

    public void initAdd(UserEmploymentLogE userEmploymentLogE, String corpinfoName, Long user_id) {
        userEmploymentLogE.setUserEmploymentLogId(Tools.get32UUID());
        userEmploymentLogE.setCorpinfoName(corpinfoName);
        userEmploymentLogE.setUserId(user_id);
    }
}

