ManageHr.php 1.8 KB
<?php

namespace App\Models\Manage;
use App\Models\Base;

class ManageHr extends Base
{
    protected $table = 'gl_manage_hr';

    /**
     * 特殊字段
     * @return string[]
     * @author zgj
     * @date 2023/5/31
     */
    public static function specielField(){
        return ['photo_gallery','id_card_gallery','certificate_gallery','career_history','learning_history'];
    }




    /**
     * 级别序列
     * @return string[]
     * @author zgj
     * @date 2023/5/31
     */
    public static function pLevel()
    {
        return [
            0 => '实习期/试用期(P0)',
            1 => '初级(P1)',
            2 => '初级(P2)',
            3 => '初级(P3)',
            4 => '中级(P4)',
            5 => '中级(P5)',
            6 => '中级(P6)',
            7 => '高级(P7)',
            8 => '高级(P8)',
            9 => '高级(P9)',
            10 => '高级(P10)',
            11=> '职务初级(M1)',
            12 => '职务初级(M2)',
            13 => '职务初级(M3)',
            14 => '职务中级(M4)',
            15 => '职务中级(M5)',
            16 => '职务中级(M6)',
            17 => '职务高级(M7)',
            18 => '职务高级(M8)',
            19 => '职务高级(M9)',
            20 => '职务高级(M10)',
        ];
    }
    /**
     * 是否党员
     * @return string[]
     * @author zgj
     * @date 2023/5/31
     */
    public static function dangyuan()
    {
        return [
            0 => '群众',
            1 => '预备党员',
            2 => '正式党员',
        ];
    }

    /**
     * 是否有党支部
     * @return string[]
     * @author zgj
     * @date 2023/5/31
     */
    public static function dangzhibu()
    {
        return [
            0 => '无',
            1 => '是',
            2 => '否',
        ];
    }
}