package jnpf.model.personnels.vo.resignation;

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

@Data
public class FtbResignationConfigurationCategoryVO {
    private String id;
    /**
     * 离职原因类别
     */
    private String resignationTypeName;

    /**
     * 类型(1 系统默认 2 自定义)
     */
    private Integer type;

    /**
     * 是否选中，0选中,1未选中
     */
    private Integer checked;

    public static FtbResignationConfigurationCategoryVO covert(FtbPersonnelsResignationCategoryConfiguration configuration) {
        if (configuration == null) {
            return null;
        }
        FtbResignationConfigurationCategoryVO ftbResignationConfigurationCategoryVO = new FtbResignationConfigurationCategoryVO();
        ftbResignationConfigurationCategoryVO.setType(configuration.getType());
        ftbResignationConfigurationCategoryVO.setResignationTypeName(configuration.getResignationTypeName());
        ftbResignationConfigurationCategoryVO.setChecked(configuration.getChecked());
        ftbResignationConfigurationCategoryVO.setId(configuration.getId());
        return ftbResignationConfigurationCategoryVO;
    }

}
