package jnpf.model.personnels.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.base.entity.SuperBaseEntity;
import jnpf.model.personnels.dto.config.FtbPersionnelsSendCranbonCopy;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 人事入转调离抄送人表 
 * @author peng.hao 
 * @create 2024-02-02 
 */

@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName ( value ="ftb_personnels_audit_carbon_recipient" )
public class FtbPersonnelsAuditCarbonRecipient extends SuperBaseEntity.SuperCUDBaseEntity<String> implements Serializable {


	/** 审核配置表id */
   	@TableField(value = "F_MasterConfig")
	private String masterConfig;

	/** 用户id */
   	@TableField(value = "F_UserId")
	private String userId;

	/** 用户名称 */
   	@TableField(value = "F_UerName")
	private String uerName;

	/**
	 * 岗位id
	 */
	@TableField(value = "F_PostId")
	private String postId;

	/**
	 * 组织id
	 */
	@TableField(value = "F_OrgId")
	private String orgId;

	/**
	 * 组织id
	 */
	@TableField(value = "F_OrgName")
	private String orgName;

	/**
	 * 岗位名称
	 */
	@TableField(value = "F_PostName")
	private String postName;

	/**
	 * 职等id
	 */
	@TableField(value = "F_GradeId")
	private String gradeId;

	/** 职等名称 */
	@TableField(value = "F_GradeName")
	private String gradeName;


	/** 是否有效(1无效,0有效) */
   	@TableField(value = "F_EnableMark")
	private Long enableMark;

	   public static FtbPersionnelsSendCranbonCopy coverFtbPersionnelsSendCranbonCopy(FtbPersonnelsAuditCarbonRecipient dto) {
		   if (dto == null) {
			   return null;
		   }
		   FtbPersionnelsSendCranbonCopy ftbPersionnelsSendCranbonCopy = new FtbPersionnelsSendCranbonCopy();
		   ftbPersionnelsSendCranbonCopy.setCcName(dto.getUerName());
		   ftbPersionnelsSendCranbonCopy.setCcId(dto.getUserId());
		   ftbPersionnelsSendCranbonCopy.setPostId(dto.getPostId());
		   ftbPersionnelsSendCranbonCopy.setOrgId(dto.getOrgId());
		   ftbPersionnelsSendCranbonCopy.setOrgName(dto.getOrgName());
		   ftbPersionnelsSendCranbonCopy.setPostName(dto.getPostName());
		   ftbPersionnelsSendCranbonCopy.setGradeId(dto.getGradeId());
		   ftbPersionnelsSendCranbonCopy.setGradeName(dto.getGradeName());
		   return ftbPersionnelsSendCranbonCopy;
	   }

}
