package jnpf.model.personnels.vo.employeetype;

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

@Data
public class FtbPersonnelsEmployeeTypeVO {
    /**
     * 员工类型主键Id
     */
    private String id;
    /**
     * 员工类型名称
     */
    private String name;

    public static FtbPersonnelsEmployeeTypeVO convert(FtbPersonnelsRegistrationFormFieldOption fieldOption) {
        if (fieldOption == null) {
            return null;
        }
        FtbPersonnelsEmployeeTypeVO ftbPersonnelsEmployeeTypeVO = new FtbPersonnelsEmployeeTypeVO();
        ftbPersonnelsEmployeeTypeVO.setName(fieldOption.getName());
        ftbPersonnelsEmployeeTypeVO.setId(fieldOption.getId());
        return ftbPersonnelsEmployeeTypeVO;
    }

}
