--- number headings: auto, first-level 3, max 6, 1.1 --- ### 1 字典表结构ER ```mermaid erDiagram Dict { string id string type string code string name string level string value string description string category_dict_id string standard_dict_id string base_dict_id string parent_dict_id boolean idc_base } ``` ### 2 字典表字典说明 **字段说明** | 字段 | 类型 | 备注 | |:---------------- |:-------:|:-------------------------------------------- | | id | string | 唯一标识 | | type | string | 记录类型, [standard \| category \| dict] | | code | string | 字典编码 | | name | string | 字典中文名 | | level | string | 字典内级别 | | value | string | 字典值 | | description | string | 字典描述 | | category_dict_id | string | 字典组标识 | | standard_dict_id | string | 标准标识 | | base_dict_id | string | 外部字典使用,基准ID关联,用于字典映射转换。 | | parent_dict_id | string | 父级字典ID | | idc_base | boolean | 系统基准字典标识 | ## 2 初始数据定义 ### 3 基准标准(base_standard) | 字段 | 类型 | 取值 | 备注 | |:---------------- |:-------:| -------------:|:---------------------------------------------------------- | | id | string | 1 | 唯一标识 | | type | string | standard | 记录类型, [standard \| category \| dict] | | code | string | base_standard | 字典编码 | | name | string | BASE基准标准 | 字典中文名 | | level | string | NULL | 字典内级别,标准不适用 | | value | string | NULL | 字典值,标准不适用 | | description | string | 平台基准标准 | 字典描述 | | category_dict_id | string | NULL | 字典组标识,标准类型不适用 | | standard_dict_id | string | NULL | 标准标识,标准类型不适用 | | base_dict_id | string | NULL | 外部字典使用,基准ID关联,用于字典映射转换,标准类型不适用 | | parent_dict_id | string | NULL | 父级字典ID,,标准不适用 | | idc_base | boolean | true | 系统基准字典标识 | ### 4 基准字典组 #### 4.1 性别分组(base_gender_category) | 字段 | 类型 | 取值 | 备注 | |:---------------- |:-------:| --------------------:|:----------------------------------------------- | | type | string | category | 记录类型 | | code | string | base_gender_category | 平台标准性别 | | name | string | 平台标准性别 | 字典名称 | | level | string | NULL | 字典内级别,分组不适用 | | value | string | NULL | 字典值,分组不适用 | | description | string | CYY平台基准性别标准 | 字典描述 | | category_dict_id | string | NULL | 字典组标识 | | standard_dict_id | string | 1 | 表示属于base_standard表示这个分组是系统内部标准 | | base_dict_id | string | NULL | 基准ID关联,内部字典不适用 | | parent_dict_id | string | NULL | 父级字典ID,分组不适用 | | idc_base | boolean | true | 内部标准字典标记 | #### 4.2 政区分组(base_district_category) | 字段 | 类型 | 取值 | 备注 | |:---------------- |:-------:| ----------------------:|:----------------------------------------------- | | type | string | category | 记录类型 | | code | string | base_district_category | 平台标准性别 | | name | string | 平台标准政区 | 字典名称 | | level | string | NULL | 字典内级别,分组不适用 | | value | string | NULL | 字典值,分组不适用 | | description | string | 平台标准政区分组 | 字典描述 | | category_dict_id | string | NULL | 字典组标识 | | standard_dict_id | string | 1 | 表示属于base_standard表示这个分组是系统内部标准 | | base_dict_id | string | NULL | 基准ID关联,内部字典不适用 | | parent_dict_id | string | NULL | 父级字典ID,分组不适用 | | idc_base | boolean | true | 内部标准字典标记 | #### 4.3 证件类型(base_license_type_category) | 字段 | 类型 | 取值 | 备注 | |:---------------- |:-------:| --------------------------:|:----------------------------------------------- | | type | string | category | 记录类型 | | code | string | base_license_type_category | 证件类型 | | name | string | 证件类型 | 字典名称 | | level | string | NULL | 字典内级别,分组不适用 | | value | string | NULL | 字典值,分组不适用 | | description | string | 证件类型 | 字典描述 | | category_dict_id | string | NULL | 字典组标识 | | standard_dict_id | string | 1 | 表示属于base_standard表示这个分组是系统内部标准 | | base_dict_id | string | NULL | 基准ID关联,内部字典不适用 | | parent_dict_id | string | NULL | 父级字典ID,分组不适用 | | idc_base | boolean | true | 内部标准字典标记 | #### 4.4 汽车品牌(base_vehicle_brand_category) | 字段 | 类型 | 取值 | 备注 | |:---------------- |:-------:| ---------------------------:|:----------------------------------------------- | | type | string | category | 记录类型 | | code | string | base_vehicle_brand_category | 平台标准汽车品牌 | | name | string | 汽车品牌字典 | 字典名称 | | level | string | NULL | 字典内级别,分组不适用 | | value | string | NULL | 字典值,分组不适用 | | description | string | 汽车品牌字典 | 字典描述 | | category_dict_id | string | NULL | 字典组标识 | | standard_dict_id | string | 1 | 表示属于base_standard表示这个分组是系统内部标准 | | base_dict_id | string | NULL | 基准ID关联,内部字典不适用 | | parent_dict_id | string | NULL | 父级字典ID,分组不适用 | | idc_base | boolean | true | 内部标准字典标记 | #### 4.5 机构类型(base_corporation_category) | 字段 | 类型 | 取值 | 备注 | |:---------------- |:-------:| -------------------------:|:----------------------------------------------- | | type | string | category | 记录类型 | | code | string | base_corporation_category | 机构类型 | | name | string | 机构类型 | 字典名称 | | level | string | NULL | 字典内级别,分组不适用 | | value | string | NULL | 字典值,分组不适用 | | description | string | 机构类型 | 字典描述 | | category_dict_id | string | NULL | 字典组标识 | | standard_dict_id | string | 1 | 表示属于base_standard表示这个分组是系统内部标准 | | base_dict_id | string | NULL | 基准ID关联,内部字典不适用 | | parent_dict_id | string | NULL | 父级字典ID,分组不适用 | | idc_base | boolean | true | 内部标准字典标记 | #### 4.6 小区业务(base_community_business_category) | 字段 | 类型 | 取值 | 备注 | |:---------------- |:-------:| --------------------------------:|:----------------------------------------------- | | type | string | category | 记录类型 | | code | string | base_community_business_category | 小区业务 | | name | string | 小区业务 | 字典名称 | | level | string | NULL | 字典内级别,分组不适用 | | value | string | NULL | 字典值,分组不适用 | | description | string | 小区业务 | 字典描述 | | category_dict_id | string | NULL | 字典组标识 | | standard_dict_id | string | 1 | 表示属于base_standard表示这个分组是系统内部标准 | | base_dict_id | string | NULL | 基准ID关联,内部字典不适用 | | parent_dict_id | string | NULL | 父级字典ID,分组不适用 | | idc_base | boolean | true | 内部标准字典标记 |