package jnpf.model.personnels.dto.oa;

import jnpf.model.personnels.po.FtbPersonnelsStaffEmploymentApply;
import lombok.Data;

/**
 * @Author: peng.hao
 * @create: 2024/10/10
 */
@Data
public class FtbPersonnelsEmployInfoForOA {
    /**
     * 手机
     */
    String phone;
    /**
     * 姓名(手机)
     */
    String name;
    /**
     * 姓名传值
     */
    private String workerName;

    public static FtbPersonnelsEmployInfoForOA covert(FtbPersonnelsStaffEmploymentApply apply){
        if (apply == null ) return null;
        FtbPersonnelsEmployInfoForOA forOA = new FtbPersonnelsEmployInfoForOA();
        forOA.setName(apply.getWorkerName()+"("+apply.getPhone()+")");
        forOA.setPhone(apply.getPhone());
        forOA.setWorkerName(apply.getWorkerName());
        return forOA;

    }
}
