new
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
主要保存公司内部外部业务系统。
|
||||
**现有业务**
|
||||
```plantuml
|
||||
!theme sketchy-outline
|
||||
package "社区服务平台" {
|
||||
[智慧小区]
|
||||
[网格管理业务]
|
||||
}
|
||||
package "保险" {
|
||||
[医疗责任]
|
||||
[校园责任]
|
||||
[小区责任]
|
||||
}
|
||||
```
|
||||
|
||||
**数据模型**
|
||||
```plantuml
|
||||
!theme minty
|
||||
package 公司业务信息域 {
|
||||
class Service<服务信息> {
|
||||
string service_id
|
||||
string name
|
||||
string code
|
||||
string provider_corp_id
|
||||
}
|
||||
|
||||
class ServiceUserMapping<系统用户关系映射> {
|
||||
string person_id
|
||||
string user_id
|
||||
string service_id
|
||||
datatime register_date
|
||||
}
|
||||
}
|
||||
Service ||--o{ ServiceUserMapping
|
||||
Person ||--o{ ServiceUserMapping
|
||||
```
|
||||
@@ -0,0 +1,58 @@
|
||||
```plantuml
|
||||
!theme sketchy-outline
|
||||
package 人员基本信息域 {
|
||||
class Person<人员基本信息>{
|
||||
string name
|
||||
string given_name
|
||||
string family_name
|
||||
string person_id
|
||||
string license_type
|
||||
string license_no
|
||||
string gender_code
|
||||
date birthday
|
||||
}
|
||||
class ContactPerson<联系人> {
|
||||
string person_id
|
||||
string contact_person_id
|
||||
string relationship_code{关系}
|
||||
}
|
||||
enum ContactType {
|
||||
Mobile
|
||||
Phone
|
||||
Email
|
||||
Address
|
||||
}
|
||||
class Phone<电话> {
|
||||
string provider
|
||||
string number
|
||||
}
|
||||
class ContactMethod<联系方式> {
|
||||
string contact_type_code
|
||||
string contact_value
|
||||
}
|
||||
class Mobile<联系电话> {
|
||||
string provider
|
||||
string number
|
||||
}
|
||||
class Email<电子邮箱> {
|
||||
string person_id
|
||||
string address
|
||||
}
|
||||
class Address<地址> {
|
||||
string address_id
|
||||
string country_id
|
||||
string province_code
|
||||
string city_code
|
||||
string district_code
|
||||
string address
|
||||
}
|
||||
}
|
||||
Mobile }-- ContactMethod : 包含
|
||||
Address }-- ContactMethod : 包含
|
||||
Email }-- ContactMethod : 包含
|
||||
Phone }-- ContactMethod : 包含
|
||||
ContactMethod }o--|| Person : 拥有
|
||||
|
||||
License }o--|| Person : 拥有
|
||||
ContactPerson }o--|| Person : 属于
|
||||
```
|
||||
@@ -0,0 +1,154 @@
|
||||
---
|
||||
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 | 内部标准字典标记 |
|
||||
@@ -0,0 +1,12 @@
|
||||
```plantuml
|
||||
!theme sketchy-outline
|
||||
package 小区信息域 {
|
||||
class Community {
|
||||
string community_id
|
||||
string province_code
|
||||
string city_code
|
||||
string district_code
|
||||
string address
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,14 @@
|
||||
```plantuml
|
||||
!theme sketchy-outline
|
||||
package 组织机构信息域 {
|
||||
class Corporation {
|
||||
string license_number
|
||||
string corporation_id
|
||||
string name
|
||||
string province_code
|
||||
string city_code
|
||||
string district_code
|
||||
string address
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,22 @@
|
||||
```plantuml
|
||||
!theme sketchy-outline
|
||||
package 证件信息域 {
|
||||
enum LicenseType<证件类型字典> {
|
||||
IdCard 人员证件/身份证
|
||||
Passport 人员证件/护照
|
||||
Driver 人员证件/驾照
|
||||
SecurityCard 人员证件/社保卡
|
||||
VehicleLicense 车辆证件/行驶证
|
||||
HouseLicense 房产/房产证
|
||||
BusinessLicense 企业/营业执照
|
||||
}
|
||||
class License<证件> {
|
||||
string license_id
|
||||
string license_type
|
||||
string license_no
|
||||
date valid_since_date
|
||||
date valid_due_date
|
||||
string issuer
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,30 @@
|
||||
```plantuml
|
||||
!theme sketchy-outline
|
||||
package 资产信息域 {
|
||||
class Vehicle {
|
||||
string vehicle_id
|
||||
string vehicle_brand_code
|
||||
string license_no
|
||||
datetime register_date
|
||||
}
|
||||
Vehicle ||--|| License : has
|
||||
class House {
|
||||
string house_id
|
||||
string community_id
|
||||
string province_code
|
||||
string city_code
|
||||
string district_code
|
||||
string address
|
||||
}
|
||||
House ||--|| License : has
|
||||
class ParkSpot {
|
||||
string park_spot_id
|
||||
string community_id
|
||||
string code
|
||||
}
|
||||
ParkSpot ||--|| License : has
|
||||
}
|
||||
Vehicle ||--o{ AssetRecord : has
|
||||
House ||--o{ AssetRecord : has
|
||||
ParkSpot ||--o{ AssetRecord : has
|
||||
```
|
||||
@@ -0,0 +1,27 @@
|
||||
```plantuml
|
||||
!theme sketchy-outline
|
||||
enum AssetType_Dict<资产类型> {
|
||||
Vehicle 车
|
||||
House 房
|
||||
ParkSpot 车位
|
||||
}
|
||||
enum AssetOwnStatus_Dict<资产> {
|
||||
Owned 拥有
|
||||
Transferred 已转让
|
||||
Rent 租用
|
||||
}
|
||||
class AssetRecord {
|
||||
string asset_id
|
||||
string asset_type
|
||||
string asset_no
|
||||
string owner_type
|
||||
string owner_id //关联人员/机构组织ID
|
||||
string asset_id_ref //关联资产信息
|
||||
string own_status //状态
|
||||
date register_date //状态变更时间
|
||||
}
|
||||
Person ||--o{ AssetRecord : 关联
|
||||
Asset -- Vehicle : 关联
|
||||
Asset -- House : 关联
|
||||
Asset -- ParkSpot : 关联
|
||||
```
|
||||
Reference in New Issue
Block a user