ALTER TABLE ccdi_project
    MODIFY COLUMN status CHAR(1) NOT NULL DEFAULT '0' COMMENT '项目状态：0-进行中，1-已完成，2-已归档，3-打标中';

INSERT INTO sys_dict_data (
    dict_sort,
    dict_label,
    dict_value,
    dict_type,
    css_class,
    list_class,
    is_default,
    status,
    create_by,
    create_time
)
SELECT
    4,
    '打标中',
    '3',
    'ccdi_project_status',
    '',
    'warning',
    'N',
    '0',
    'admin',
    NOW()
WHERE NOT EXISTS (
    SELECT 1
    FROM sys_dict_data
    WHERE dict_type = 'ccdi_project_status'
      AND dict_value = '3'
);
