双碳管理系统 需求规格说明书(SRS)
- 需求分析规格说明书(SRS)
4.1 用户角色
| 角色 | 说明 | 主要权限 |
|---|---|---|
| 系统管理员 | 平台最高权限 | 用户/角色/菜单/参数/日志/所有业务 |
| 采购员 | 负责采购业务 | 采购计划、申请、合同、到货、退货 |
| 销售员 | 负责销售业务 | 销售计划、订单、合同、发货、退货 |
| 生产计划员 | 负责生产计划与排产 | 工厂/工艺/产品建模、计划、排产 |
| 车间作业员 | 执行生产作业 | 生产作业、领料申请、完工登记 |
| 仓管员 | 负责仓储作业 | 入库、出库、盘点、移库、补货、运输 |
| 质检员 | 负责质量检验 | 物料/过程/产品检验、防错、质检标准 |
| 碳管理员 | 负责碳数据 | 能效检测点、排放因子、碳中和、配额 |
| 企业用户 | 招投标平台注册企业 | 浏览招标、投标、订单支付、投诉 |
| 访客 | 未登录用户 | 浏览招标信息、政策法规 |
4.2 功能需求
4.2.1 系统管理(FR-SYS)
| 编号 | 需求 | 优先级 |
|---|---|---|
| FR-SYS-01 | 用户登录、验证码校验、JWT 令牌签发与刷新 | 高 |
| FR-SYS-02 | 用户增删改查、重置密码、分配角色、分配部门 | 高 |
| FR-SYS-03 | 角色管理、菜单权限分配、数据权限(全部/本部门/本人) | 高 |
| FR-SYS-04 | 菜单管理,支持目录/菜单/按钮三级 | 高 |
| FR-SYS-05 | 字典管理,支持字典类型与字典数据 | 中 |
| FR-SYS-06 | 参数配置、通知公告 | 中 |
| FR-SYS-07 | 操作日志、登录日志、在线用户、定时任务 | 中 |
4.2.2 供应链(FR-SCM)
| 编号 | 需求 | 优先级 |
|---|---|---|
| FR-SCM-01 | 采购计划编制、明细维护、按状态查询 | 高 |
| FR-SCM-02 | 采购申请由计划生成,支持审批流转 | 高 |
| FR-SCM-03 | 采购合同签订,维护合同明细、金额、交期 | 高 |
| FR-SCM-04 | 采购到货登记,按合同校验数量,生成到货明细 | 高 |
| FR-SCM-05 | 采购退货登记与明细 | 中 |
| FR-SCM-06 | 销售计划、销售订单、销售合同、销售发货、销售退货 | 高 |
| FR-SCM-07 | 供应商与客户档案维护 | 高 |
4.2.3 生产执行(FR-MES)
| 编号 | 需求 | 优先级 |
|---|---|---|
| FR-MES-01 | 工厂建模:生产线、工序、设备 | 高 |
| FR-MES-02 | 工艺建模:工艺路线与工序 | 高 |
| FR-MES-03 | 产品建模与 BOM 维护 | 高 |
| FR-MES-04 | 生产计划编制与审核 | 高 |
| FR-MES-05 | 计划排产:按产线/日期分解,生成物料需求 | 高 |
| FR-MES-06 | 生产作业下达、开工、完工 | 高 |
| FR-MES-07 | 领料申请、审核、发料 | 高 |
| FR-MES-08 | 生产完工登记与入库 | 高 |
| FR-MES-09 | 物料/过程/产品检验,防错管理,质检标准 | 高 |
4.2.4 仓储物流(FR-WMS)
| 编号 | 需求 | 优先级 |
|---|---|---|
| FR-WMS-01 | 物料档案、分类、标签模板 | 高 |
| FR-WMS-02 | 仓库、库区、库位、货主维护 | 高 |
| FR-WMS-03 | 入库申请、审核、上架、库存更新 | 高 |
| FR-WMS-04 | 出库申请、审核、拣货、库存扣减 | 高 |
| FR-WMS-05 | 盘点单、盘盈盘亏调整 | 中 |
| FR-WMS-06 | 移库、补货申请 | 中 |
| FR-WMS-07 | 承运申请、车辆调度、配送单 | 中 |
| FR-WMS-08 | 库存查询、库存明细、库存预警 | 高 |
4.2.5 碳管理(FR-CF)
| 编号 | 需求 | 优先级 |
|---|---|---|
| FR-CF-01 | 能效检测点维护与实时数据接入 | 高 |
| FR-CF-02 | 固定碳排放因子配置 | 高 |
| FR-CF-03 | 变化碳排放配置 | 高 |
| FR-CF-04 | 碳中和比例配置与净排放计算 | 高 |
| FR-CF-05 | 企业碳配额、额度变动、计算方法、套餐 | 中 |
| FR-CF-06 | 碳排放报表与趋势图 | 高 |
4.2.6 招投标(FR-BID)
| 编号 | 需求 | 优先级 |
|---|---|---|
| FR-BID-01 | 招标信息发布、编辑、下架 | 高 |
| FR-BID-02 | 政策法规、平台动态、轮播图管理 | 中 |
| FR-BID-03 | 企业注册、登录、资质材料上传 | 高 |
| FR-BID-04 | 企业投标报名、投标材料上传 | 高 |
| FR-BID-05 | 投标订单、支付记录、退款记录 | 高 |
| FR-BID-06 | 违规投诉与附件、处理 | 中 |
4.2.7 报表与大屏(FR-RPT)
| 编号 | 需求 | 优先级 |
|---|---|---|
| FR-RPT-01 | 采购到货/合同、销售合同/发货明细报表 | 高 |
| FR-RPT-02 | 生产检验、设备功率、产品功率、碳排放报表 | 高 |
| FR-RPT-03 | 报表导出 Excel(xlsx) | 高 |
| FR-RPT-04 | 数据大屏:能耗、库存、生产、销售多维展示 | 高 |
4.3 非功能需求
| 类别 | 要求 |
|---|---|
| 性能 | 常规列表查询 ≤ 2s;导出 1 万行 ≤ 30s;大屏首屏 ≤ 5s |
| 并发 | 支持 200 人同时在线,令牌无状态,可水平扩展 |
| 安全 | 密码 BCrypt 加密;接口 JWT 认证;按钮级权限;防 SQL 注入(MyBatis 预编译);XSS 过滤;验证码防暴力登录 |
| 可用性 | 7×24 运行;数据库每日备份;异常统一处理并记录日志 |
| 兼容性 | Chrome/Edge 最新版;1366×768 及以上分辨率;大屏 1920×1080 |
| 可维护性 | 模块化、分层清晰;统一返回结构;统一异常与日志 |
| 可扩展性 | 新业务以 Maven 模块接入;代码生成器快速生成 CRUD |
4.4 接口需求
- 风格:RESTful,JSON 传输。
- 前缀:
/prod-api(生产)//dev-api(开发),后端实际路径如/scm/purchase/arrive。 - 认证:请求头
Authorization: Bearer <token>。 - 返回:
{ code, msg, data/rows/total },code=200成功,401未登录,403无权限。 - 分页:
pageNum、pageSize;排序:orderByColumn、isAsc。 - 导出:
GET /xxx/export返回文件名,前端再调用/common/download?fileName=...下载。 - 文件上传:
POST /common/upload,返回fileName、url。
4.5 数据需求
| 项 | 要求 |
|---|---|
| 数据库 | MySQL 8,库名 carbon,字符集 utf8mb4 |
| 表数量 | 137 张(业务 118 张 + 系统 19 张) |
| 主键 | 自增 bigint/int,统一 id |
| 公共字段 | create_by、create_time、update_by、update_time、remark |
| 状态字段 | status、apply_status、audit_status 等,字典驱动 |
| 数据保留 | 业务数据长期保留;日志 ≥ 6 个月;导出文件定期清理 |
| 备份 | 每日全量备份,保留 7 天 |
- UML 模型
5.1 用例图(总体)
总体用例图展示 9 类参与者与 12 个功能模块的关系。采购、销售、领料三个用例都包含「出入库与盘点」,碳管理的结果进入「报表与大屏」。
5.2 系统管理用例图
系统管理员负责用户、角色、菜单、部门、岗位、字典、参数、日志与通知公告。新增用户需包含「分配角色」,角色需包含「分配菜单权限」。
5.3 供应链-采购管理用例图
采购员维护采购计划、申请、合同、到货、退货与供应商;审核员参与三级审核;仓管员参与采购到货。采购计划包含生成采购申请,申请包含签订合同,合同包含到货登记;退货是对到货的扩展用例。
5.4 供应链-销售管理用例图
销售员维护销售计划、订单、合同、发货、退货与客户档案;审核员审核订单与合同;仓管员参与发货。订单包含转合同,合同包含发货,退货是对发货的扩展。
5.5 生产建模与计划用例图
生产计划员维护工厂、工艺、产品建模与 BOM,编制生产计划并排产。产品建模包含 BOM 管理,计划排产包含 BOM 展开与工厂产线选择。
5.6 生产作业与领料用例图
车间作业员执行生产作业、发起领料、登记完工;仓管员参与领料发料与成品入库。领料与完工都包含成品/物料入库。
5.7 生产质量管理用例图
质检员维护质检标准,执行来料检验、生产采样、产品检验,查看质量追溯与报告,维护防错规则。来料检验与产品检验都引用质检标准。
5.8 仓储-物料与仓库用例图
仓管员维护物料档案、分类、标签,以及仓库、库区、库位与物料库存。库区管理包含在仓库信息下,库位管理包含在库区下,库存查询引用物料档案。
5.9 仓储-出入库与盘点用例图
仓管员发起入库、出库、补货、盘点、移库;审核员审核出入库申请。入库与出库都包含盘点调整。
5.10 仓储-运输调度用例图
仓管员发起承运申请,进行车辆调度,生成配送单。车辆调度包含承运申请,配送管理包含车辆调度。
5.11 碳管理用例图
碳管理员维护能效检测点、能耗采集、固定/变化排放因子、碳中和比例与碳配额;系统管理员查看碳排放报表。报表引用能耗采集与三类配置。
5.12 招投标用例图
访客浏览招标与政策、注册企业;企业用户维护信息、报名投标、上传材料、支付保证金、提交投诉;平台管理员发布招标、审核企业、处理投诉、管理订单退款。投标报名包含上传材料,支付包含订单退款。
5.13 报表与大屏用例图
系统管理员、采购员、销售员、生产计划员分别查看采购、销售、财务、统计、库存、能耗报表与数据大屏。数据大屏包含能耗报表,财务报表引用采购报表。
5.14 类图(供应链核心)
classDiagram
class PurchasePlan {
+Long id
+String planNo
+Date planDate
+String status
+List~PurchasePlanDetail~ details
+selectScmPurchasePlanById(id) ScmPurchasePlan
+selectScmPurchasePlanList(query) List
+insertScmPurchasePlan(entity) int
+updateScmPurchasePlan(entity) int
+deleteScmPurchasePlanByIds(ids) int
+submit(id) void
+audit(id) void
}
class PurchasePlanDetail {
+Long id
+Long planId
+Long materialId
+BigDecimal quantity
+selectScmPurchasePlanDetailByPlanId(planId) List
+batchScmPurchasePlanDetail(list) int
+deleteScmPurchasePlanDetailByPlanId(planId) int
}
class PurchaseApply {
+Long id
+String applyNo
+String applyStatus
+String auditStatus
+selectScmPurchaseApplyById(id) ScmPurchaseApply
+selectScmPurchaseApplyList(query) List
+insertScmPurchaseApply(entity) int
+updateScmPurchaseApply(entity) int
+submit(id) void
+audit(id) void
}
class PurchaseContract {
+Long id
+String contractNo
+Long supplierId
+BigDecimal amount
+selectScmPurchaseContractById(id) ScmPurchaseContract
+selectScmPurchaseContractList(query) List
+insertScmPurchaseContract(entity) int
+updateScmPurchaseContract(entity) int
+deleteScmPurchaseContractByIds(ids) int
}
class PurchaseContractDetail {
+Long id
+Long contractId
+Long materialId
+BigDecimal quantity
+BigDecimal price
+selectScmPurchaseContractDetailByContractId(id) List
+batchScmPurchaseContractDetail(list) int
+deleteScmPurchaseContractDetailByContractId(id) int
}
class PurchaseArrive {
+Long id
+String arriveNo
+Long contractId
+Long supplierId
+Date arriveDate
+selectScmPurchaseArriveById(id) ScmPurchaseArrive
+selectScmPurchaseArriveList(query) List
+insertScmPurchaseArrive(entity) int
+updateScmPurchaseArrive(entity) int
+deleteScmPurchaseArriveByIds(ids) int
}
class PurchaseArriveDetail {
+Long id
+Long arriveId
+Long materialId
+String batchNo
+BigDecimal quantity
+selectScmPurchaseArriveDetailByArriveId(id) List
+batchScmPurchaseArriveDetail(list) int
+deleteScmPurchaseArriveDetailByArriveId(id) int
}
class Supplier {
+Long id
+String supplierName
+String contact
+String contactTel
+selectScmPurchaseSupplierById(id) ScmPurchaseSupplier
+selectScmPurchaseSupplierList(query) List
+insertScmPurchaseSupplier(entity) int
+updateScmPurchaseSupplier(entity) int
+auditScmPurchaseSupplier(id) void
}
class MaterialInfo {
+Long id
+String materialName
+String model
+String specification
+String unit
+selectWmsMaterialInfoById(id) WmsMaterialInfo
+selectWmsMaterialInfoList(query) List
+insertWmsMaterialInfo(entity) int
+updateWmsMaterialInfo(entity) int
+deleteWmsMaterialInfoByIds(ids) int
}
PurchasePlan "1" --> "*" PurchasePlanDetail
PurchasePlan --> PurchaseApply : 生成
PurchaseApply --> PurchaseContract : 签订
PurchaseContract "1" --> "*" PurchaseContractDetail
PurchaseContract --> PurchaseArrive : 到货
PurchaseArrive "1" --> "*" PurchaseArriveDetail
Supplier "1" --> "*" PurchaseContract
MaterialInfo "1" --> "*" PurchaseContractDetail
MaterialInfo "1" --> "*" PurchaseArriveDetail
5.15 类图(MES 核心)
classDiagram
class FactoryModel {
+Long id
+String factoryName
+String lineName
+selectMesFactoryModelById(id) MesFactoryModel
+selectMesFactoryModelList(query) List
+insertMesFactoryModel(entity) int
+updateMesFactoryModel(entity) int
+deleteMesFactoryModelByIds(ids) int
}
class ProcessModel {
+Long id
+String processName
+String processNo
+selectMesProcessModelById(id) MesProcessModel
+selectMesProcessModelList(query) List
+insertMesProcessModel(entity) int
+updateMesProcessModel(entity) int
+deleteMesProcessModelByIds(ids) int
}
class ProductModel {
+Long id
+String productName
+String productNo
+selectMesProductModelById(id) MesProductModel
+selectMesProductModelList(query) List
+insertMesProductModel(entity) int
+updateMesProductModel(entity) int
+deleteMesProductModelByIds(ids) int
}
class ProductBom {
+Long id
+Long productId
+String bomNo
+selectMesProductBomById(id) MesProductBom
+selectMesProductBomList(query) List
+insertMesProductBom(entity) int
+updateMesProductBom(entity) int
+deleteMesProductBomByIds(ids) int
}
class ProductBomDetail {
+Long id
+Long bomId
+Long materialId
+BigDecimal quantity
+selectMesProductBomDetailByBomId(id) List
+batchMesProductBomDetail(list) int
+deleteMesProductBomDetailByBomId(id) int
}
class ProductPlan {
+Long id
+String planNo
+Date planDate
+String status
+selectMesProductPlanById(id) MesProductPlan
+selectMesProductPlanList(query) List
+insertMesProductPlan(entity) int
+submit(id) void
+audit(id) void
}
class ProductSchedule {
+Long id
+Long planId
+Long lineId
+Date scheduleDate
+selectMesProductScheduleById(id) MesProductSchedule
+selectMesProductScheduleList(query) List
+insertMesProductSchedule(entity) int
+updateMesProductScheduleStatus(id,status) int
+publish(id) void
}
class ProductJob {
+Long id
+Long scheduleId
+String jobNo
+String status
+selectMesProductJobById(id) MesProductJob
+selectMesProductJobList(query) List
+insertMesProductJob(entity) int
+updateProductJobStatus(id,status) int
+changeStatus(id,status) void
}
class MaterialRequisition {
+Long id
+String requisitionNo
+String applyStatus
+String auditStatus
+selectMesMaterialRequisitionById(id) MesMaterialRequisition
+selectMesMaterialRequisitionList(query) List
+insertMesMaterialRequisition(entity) int
+checkMaterialRequisition(id,result) void
+updateMesMaterialRequisitionStatus(id,status) int
}
class ProductFinish {
+Long id
+Long jobId
+BigDecimal finishQty
+selectMesProductFinishById(id) MesProductFinish
+selectMesProductFinishList(query) List
+insertMesProductFinish(entity) int
+updateMesProductFinish(entity) int
+updateStatus(id,status) void
}
ProductModel "1" --> "*" ProductBom
ProductBom "1" --> "*" ProductBomDetail
ProductPlan "1" --> "*" ProductSchedule
ProductSchedule "1" --> "*" ProductJob
ProductJob "1" --> "*" MaterialRequisition
ProductJob "1" --> "1" ProductFinish
FactoryModel "1" --> "*" ProductSchedule
ProcessModel "1" --> "*" ProductBom
5.16 类图(WMS 核心)
classDiagram
class MaterialInfo {
+Long id
+String materialName
+Long categoryId
+selectWmsMaterialInfoById(id) WmsMaterialInfo
+selectWmsMaterialInfoList(query) List
+insertWmsMaterialInfo(entity) int
+updateWmsMaterialInfo(entity) int
+deleteWmsMaterialInfoByIds(ids) int
}
class MaterialCategory {
+Long id
+String categoryName
+Long parentId
+selectWmsMaterialCategoryById(id) WmsMaterialCategory
+selectWmsMaterialCategoryList(query) List
+insertWmsMaterialCategory(entity) int
+updateWmsMaterialCategory(entity) int
+deleteWmsMaterialCategoryByIds(ids) int
}
class Warehouse {
+Long id
+String warehouseName
+selectWmsWarehouseById(id) WmsWarehouse
+selectWmsWarehouseList(query) List
+insertWmsWarehouse(entity) int
+updateWmsWarehouse(entity) int
+deleteWmsWarehouseByIds(ids) int
}
class WarehouseRegion {
+Long id
+Long warehouseId
+String regionName
+selectWmsWarehouseRegionById(id) WmsWarehouseRegion
+selectWmsWarehouseRegionList(query) List
+insertWmsWarehouseRegion(entity) int
+updateWmsWarehouseRegion(entity) int
}
class WarehouseLocation {
+Long id
+Long regionId
+String locationName
+selectWmsWarehouseLocationById(id) WmsWarehouseLocation
+selectWmsWarehouseLocationList(query) List
+insertWmsWarehouseLocation(entity) int
+updateWmsWarehouseLocation(entity) int
}
class InWarehouseApply {
+Long id
+String applyNo
+String status
+selectWmsInWarehouseApplyById(id) WmsInWarehouseApply
+selectWmsInWarehouseApplyList(query) List
+insertWmsInWarehouseApply(entity) int
+performInWarehouse(id) void
}
class OutWarehouseApply {
+Long id
+String applyNo
+String status
+selectWmsOutWarehouseApplyById(id) WmsOutWarehouseApply
+selectWmsOutWarehouseApplyList(query) List
+insertWmsOutWarehouseApply(entity) int
+performOutWarehouse(id) void
+performDelivery(id) void
}
class WarehouseMaterial {
+Long id
+Long materialId
+Long locationId
+BigDecimal quantity
+selectWmsWarehouseMaterialById(id) WmsWarehouseMaterial
+selectWmsWarehouseMaterialList(query) List
+insertWmsWarehouseMaterial(entity) int
+updateMaterialTotalInventory(materialId,qty) int
}
class WarehouseCheck {
+Long id
+String checkNo
+String status
+selectWmsWarehouseCheckById(id) WmsWarehouseCheck
+selectWmsWarehouseCheckList(query) List
+insertWmsWarehouseCheck(entity) int
+updateWmsWarehouseCheck(entity) int
}
MaterialCategory "1" --> "*" MaterialInfo
Warehouse "1" --> "*" WarehouseRegion
WarehouseRegion "1" --> "*" WarehouseLocation
MaterialInfo "1" --> "*" WarehouseMaterial
WarehouseLocation "1" --> "*" WarehouseMaterial
InWarehouseApply --> WarehouseMaterial : 增加库存
OutWarehouseApply --> WarehouseMaterial : 扣减库存
WarehouseCheck --> WarehouseMaterial : 盘点调整
5.17 时序图(采购到货与入库)
时序图只描述对象间的消息传递。数据库不是协作对象,由 Mapper 代表「数据读写」;参与者按「对象名:类名」标注。
sequenceDiagram autonumber actor Buyer as 采购员 actor Keeper as 仓管员 participant UI as 管理端页面 participant C as arriveCtl:ScmPurchaseArriveController participant S as arriveSvc:IScmPurchaseArriveService participant M as arriveMapper:ScmPurchaseArriveMapper participant DB as 数据库 MySQL Buyer->>UI: 打开采购到货页面 UI->>C: GET /purchase/arrive/list C->>C: startPage() C->>S: selectScmPurchaseArriveList(query) S->>M: selectScmPurchaseArriveList(query) M-->>S: List<ScmPurchaseArrive> S-->>C: List<ScmPurchaseArrive> C-->>UI: TableDataInfo(rows,total) Buyer->>UI: 新增到货单,选择合同 UI->>C: GET /purchase/contract/list C-->>UI: 合同列表 Buyer->>UI: 填写到货数量、批次,保存 UI->>C: POST /purchase/arrive C->>S: insertScmPurchaseArrive(entity) S->>M: insert 到货主表 S->>M: insert 到货明细 M-->>S: 影响行数 S-->>C: rows C-->>UI: AjaxResult(code=200) Note over Buyer,DB: 入库由仓管员另行发起,保存到货单不会自动入库 Keeper->>UI: 新建入库申请 UI->>C: POST /wmsApply/inWarahouseApply C-->>UI: 保存成功(待审核) Keeper->>UI: 审核入库申请 UI->>C: PUT /wmsApply/inWarahouseApply/audit C-->>UI: 审核完成,库存增加
5.18 时序图(生产领料)
sequenceDiagram autonumber actor Worker as 车间作业员 participant UI as 管理端页面 participant C as reqCtl:MesMaterialRequisitionController participant S as reqSvc:IMesMaterialRequisitionService participant M as reqMapper:MesMaterialRequisitionMapper participant DB as 数据库 MySQL Worker->>UI: 打开领料申请 UI->>C: GET /mesProduct/requisitionApply/list C->>S: selectMesMaterialRequisitionList(query) S->>M: selectMesMaterialRequisitionList(query) M-->>S: List<MesMaterialRequisition> S-->>C: List<MesMaterialRequisition> C-->>UI: TableDataInfo(rows,total) Worker->>UI: 新增,选择生产作业、物料、数量 UI->>C: POST /mesProduct/requisitionApply C->>S: insertMesMaterialRequisition(entity) S->>M: insert 主表 + 明细 C-->>UI: 保存成功(apply_status=未提交) Worker->>UI: 点击提交 UI->>C: PUT /mesProduct/requisitionApply/submit C->>S: 更新 apply_status=待审核 S->>M: update apply_status M-->>S: 影响行数 C-->>UI: 提交成功 Worker->>UI: 审核 UI->>C: PUT /mesProduct/requisitionApply/audit C->>S: 更新 audit_status S->>M: update audit_status C-->>UI: 审核完成 Worker->>UI: 检验合格/不合格 UI->>C: PUT /mesProduct/requisitionApply/set/check C-->>UI: 检验结果保存 Note over Worker,DB: 审核通过后由仓管员发起出库申请,库存不自动扣减
5.19 时序图(销售发货)
sequenceDiagram autonumber actor Seller as 销售员 actor Keeper as 仓管员 participant UI as 管理端页面 participant C as delCtl:ScmSaleDeliveryController participant S as delSvc:IScmSaleDeliveryService participant M as delMapper:ScmSaleDeliveryMapper participant DB as 数据库 MySQL Seller->>UI: 新建销售发货单 UI->>C: GET /sale/contract/list C-->>UI: 合同列表 Seller->>UI: 选择合同、填写发货明细 UI->>C: POST /sale/delivery C->>S: insertScmSaleDelivery(entity) S->>M: insert 发货主表 S->>M: insert 发货明细 M-->>S: 影响行数 S-->>C: rows C-->>UI: 保存成功 Note over Seller,DB: 出库由仓管员另行发起,发货单保存不会自动出库 Keeper->>UI: 新建出库申请 UI->>C: POST /wmsApply/outWarehouseApply C-->>UI: 保存成功(待审核) Keeper->>UI: 审核出库申请 UI->>C: PUT /wmsApply/outWarehouseApply/audit C-->>UI: 审核完成,库存扣减
5.20 时序图(企业投标)
sequenceDiagram autonumber actor Ent as 企业用户 participant UI as 用户端页面 participant BC as bidCtl:BidBiddingController participant EC as enrollCtl:BidEnterpriseBiddingController participant FC as fileCtl:BidEnterpriseBidfileController participant OC as orderCtl:BidOrderController participant DB as 数据库 MySQL Ent->>UI: 浏览招标信息 UI->>BC: GET /bid/bidding/list BC-->>UI: rows/total Ent->>UI: 报名投标 UI->>EC: POST /bid/enterprise/bidding EC-->>UI: 报名成功 Ent->>UI: 上传投标材料 UI->>FC: POST /bid/bidfile FC-->>UI: 上传成功 Ent->>UI: 创建订单并支付保证金 UI->>OC: POST /bid/order OC-->>UI: 订单创建 UI->>OC: POST /bid/payment/record OC-->>UI: 支付成功
5.21 时序图(碳核算)
碳核算由多个服务协作完成,数据读取由各服务的 Mapper 完成,图中不再单列数据库对象。
sequenceDiagram autonumber participant RPT as rptSvc:报表服务 participant CFG as cfgSvc:双碳配置服务 participant EFF as effSvc:能效服务 participant UI as 管理端/大屏 participant DB as 数据库 MySQL RPT->>EFF: 获取检测点与能耗 EFF-->>RPT: 能耗数据 RPT->>CFG: 获取固定/变化排放因子 CFG-->>RPT: 排放因子 RPT->>RPT: 碳排放量 = 能耗 × 因子 RPT->>CFG: 获取碳中和比例 CFG-->>RPT: 中和比例 RPT->>RPT: 净排放 = 排放量 × (1 - 中和比例) RPT-->>UI: 月度/年度图表数据
5.22 活动图(采购流程)
flowchart TD
S([开始]) --> P1["编制采购计划"]
P1 --> P2["生成采购申请"]
P2 --> P3{"审批通过?"}
P3 -- 否 --> P2
P3 -- 是 --> P4["签订采购合同"]
P4 --> P5["供应商发货"]
P5 --> P6["采购到货登记"]
P6 --> P7{"数量/质量合格?"}
P7 -- 否 --> P8["采购退货"]
P7 -- 是 --> P9["入库申请"]
P9 --> P10["审核入库"]
P10 --> P11["上架,库存增加"]
P11 --> E([结束])
P8 --> E
5.23 活动图(生产流程)
flowchart TD
S([开始]) --> P1["销售订单/预测"]
P1 --> P2["编制生产计划"]
P2 --> P3["计划排产"]
P3 --> P4["下达生产作业"]
P4 --> P5["领料申请"]
P5 --> P6["仓库发料"]
P6 --> P7["生产加工"]
P7 --> P8["完工登记"]
P8 --> P9{"产品检验合格?"}
P9 -- 否 --> P10["返工/报废"]
P9 -- 是 --> P11["成品入库"]
P11 --> E([结束])
P10 --> P7
5.24 状态图(采购申请)
stateDiagram-v2 [*] --> 草稿 草稿 --> 待审核: 提交 待审核 --> 已审核: 审核通过 待审核 --> 已驳回: 审核不通过 已驳回 --> 草稿: 修改重提 已审核 --> 已关闭: 合同签订完成 已关闭 --> [*]
5.25 状态图(领料单)
stateDiagram-v2 [*] --> 未提交 未提交 --> 待审核: 提交 待审核 --> 已审核: 审核通过 待审核 --> 未提交: 驳回 已审核 --> 已发料: 仓库发料 已发料 --> 已检验: 检验合格 已发料 --> 检验不合格: 检验不通过 已检验 --> [*] 检验不合格 --> [*]
5.26 状态图(投标)
stateDiagram-v2 [*] --> 已报名 已报名 --> 已上传材料: 上传投标文件 已上传材料 --> 待支付: 提交订单 待支付 --> 已支付: 支付成功 待支付 --> 已取消: 超时/取消 已支付 --> 已中标: 评标中标 已支付 --> 未中标: 评标未中标 已中标 --> [*] 未中标 --> 已退款: 保证金退回 已退款 --> [*]
5.27 组件图
flowchart TB
subgraph FE["前端组件"]
C1["管理端 SPA"]
C2["用户端 SPA"]
C3["数据大屏 SPA"]
end
subgraph BE["后端组件"]
B1["neu-admin 启动器"]
B2["neu-framework 安全框架"]
B3["业务模块 scm/mes/wms/bid/cf/report"]
B4["neu-carbon-mapper 持久层"]
B5["neu-system 系统管理"]
B6["neu-quartz 调度"]
end
subgraph INFRA["基础设施"]
I1["MySQL"]
I2["Redis"]
I3["文件存储"]
I4["Nginx"]
end
C1 --> I4
C2 --> I4
C3 --> I4
I4 --> B1
B1 --> B2
B1 --> B3
B1 --> B5
B1 --> B6
B3 --> B4
B5 --> B4
B4 --> I1
B1 --> I2
B3 --> I3
5.28 部署图
flowchart LR
subgraph Client["客户端"]
N1["管理员 PC<br/>Chrome/Edge"]
N2["企业用户 PC"]
N3["大屏显示器"]
end
subgraph Server["应用服务器"]
NG["Nginx<br/>80/443"]
APP["carbon.jar<br/>JDK 8 / :9090"]
ST["静态资源<br/>dist-manager / dist-client / dist-screen"]
end
subgraph Data["数据服务器"]
DB[("MySQL 8<br/>:3306")]
RD[("Redis<br/>:6379")]
end
N1 --> NG
N2 --> NG
N3 --> NG
NG --> ST
NG -->|"/prod-api"| APP
APP --> DB
APP --> RD
- ER 图(按业务域)
6.1 供应链 ER 图
erDiagram
SCM_PURCHASE_PLAN ||--o{ SCM_PURCHASE_PLAN_DETAIL : "1:N"
SCM_PURCHASE_PLAN ||--o{ SCM_PURCHASE_APPLY : "生成"
SCM_PURCHASE_APPLY ||--o{ SCM_PURCHASE_APPLY_DETAIL : "1:N"
SCM_PURCHASE_APPLY ||--o{ SCM_PURCHASE_CONTRACT : "转合同"
SCM_PURCHASE_CONTRACT ||--o{ SCM_PURCHASE_CONTRACT_DETAIL : "1:N"
SCM_PURCHASE_CONTRACT ||--o{ SCM_PURCHASE_ARRIVE : "到货"
SCM_PURCHASE_ARRIVE ||--o{ SCM_PURCHASE_ARRIVE_DETAIL : "1:N"
SCM_PURCHASE_ARRIVE ||--o{ SCM_PURCHASE_RETURN : "退货"
SCM_PURCHASE_RETURN ||--o{ SCM_PURCHASE_RETURN_DETAIL : "1:N"
SCM_PURCHASE_SUPPLIER ||--o{ SCM_PURCHASE_CONTRACT : "1:N"
WMS_MATERIAL_INFO ||--o{ SCM_PURCHASE_CONTRACT_DETAIL : "被采购"
WMS_MATERIAL_INFO ||--o{ SCM_PURCHASE_ARRIVE_DETAIL : "被到货"
SCM_SALE_PLAN ||--o{ SCM_SALE_PLAN_DETAIL : "1:N"
SCM_SALE_PLAN ||--o{ SCM_SALE_ORDER : "指导"
SCM_SALE_ORDER ||--o{ SCM_SALE_ORDER_DETAIL : "1:N"
SCM_SALE_ORDER ||--o{ SCM_SALE_CONTRACT : "转合同"
SCM_SALE_CONTRACT ||--o{ SCM_SALE_CONTRACT_DETAIL : "1:N"
SCM_SALE_CONTRACT ||--o{ SCM_SALE_DELIVERY : "发货"
SCM_SALE_DELIVERY ||--o{ SCM_SALE_DELIVERY_DETAIL : "1:N"
SCM_SALE_CONTRACT ||--o{ SCM_SALE_RETURN : "退货"
SCM_SALE_RETURN ||--o{ SCM_SALE_RETURN_DETAIL : "1:N"
SCM_SALE_CUSTOMER ||--o{ SCM_SALE_CONTRACT : "1:N"
SCM_PURCHASE_PLAN {
bigint id PK
varchar plan_no
date plan_date
varchar status
}
SCM_PURCHASE_PLAN_DETAIL {
bigint id PK
bigint plan_id FK
bigint material_id FK
decimal quantity
}
SCM_PURCHASE_APPLY {
bigint id PK
varchar apply_no
varchar apply_status
varchar audit_status
}
SCM_PURCHASE_CONTRACT {
bigint id PK
varchar contract_no
bigint supplier_id FK
decimal amount
date sign_date
}
SCM_PURCHASE_CONTRACT_DETAIL {
bigint id PK
bigint contract_id FK
bigint material_id FK
decimal quantity
decimal price
}
SCM_PURCHASE_ARRIVE {
bigint id PK
varchar arrive_no
bigint contract_id FK
bigint supplier_id FK
date arrive_date
}
SCM_PURCHASE_ARRIVE_DETAIL {
bigint id PK
bigint arrive_id FK
bigint material_id FK
varchar batch_no
decimal quantity
}
SCM_PURCHASE_RETURN {
bigint id PK
varchar return_no
bigint arrive_id FK
varchar reason
}
SCM_PURCHASE_RETURN_DETAIL {
bigint id PK
bigint return_id FK
bigint material_id FK
decimal quantity
}
SCM_PURCHASE_SUPPLIER {
bigint id PK
varchar supplier_name
varchar contact
varchar contact_tel
}
SCM_SALE_PLAN {
bigint id PK
varchar plan_no
varchar year_month
decimal target_amount
}
SCM_SALE_PLAN_DETAIL {
bigint id PK
bigint plan_id FK
bigint customer_id FK
decimal target_qty
}
SCM_SALE_ORDER {
bigint id PK
varchar order_no
bigint customer_id FK
date order_date
varchar status
}
SCM_SALE_ORDER_DETAIL {
bigint id PK
bigint order_id FK
bigint material_id FK
decimal quantity
decimal price
}
SCM_SALE_CONTRACT {
bigint id PK
varchar contract_no
bigint order_id FK
bigint customer_id FK
decimal amount
}
SCM_SALE_CONTRACT_DETAIL {
bigint id PK
bigint contract_id FK
bigint material_id FK
decimal quantity
}
SCM_SALE_DELIVERY {
bigint id PK
varchar delivery_no
bigint contract_id FK
date delivery_date
}
SCM_SALE_DELIVERY_DETAIL {
bigint id PK
bigint delivery_id FK
bigint material_id FK
decimal quantity
}
SCM_SALE_RETURN {
bigint id PK
varchar return_no
bigint delivery_id FK
varchar reason
}
SCM_SALE_RETURN_DETAIL {
bigint id PK
bigint return_id FK
bigint material_id FK
decimal quantity
}
SCM_SALE_CUSTOMER {
bigint id PK
varchar customer_name
varchar contact
varchar contact_tel
}
6.2 MES ER 图
erDiagram
MES_FACTORY_MODEL ||--o{ MES_FACTORY_MODEL_DETAIL : "1:N"
MES_PROCESS_MODEL ||--o{ MES_FACTORY_MODEL_DETAIL : "被引用"
MES_PRODUCT_MODEL ||--o{ MES_PRODUCT_MODEL_DETAIL : "1:N"
MES_PRODUCT_MODEL ||--o{ MES_PRODUCT_BOM : "1:N"
MES_PRODUCT_BOM ||--o{ MES_PRODUCT_BOM_DETAIL : "1:N"
MES_PRODUCT_PLAN ||--o{ MES_PRODUCT_PLAN_DETAIL : "1:N"
MES_PRODUCT_PLAN ||--o{ MES_PRODUCT_SCHEDULE : "排产"
MES_PRODUCT_SCHEDULE ||--o{ MES_PRODUCT_SCHEDULE_MATERIAL : "物料需求"
MES_PRODUCT_SCHEDULE ||--o{ MES_PRODUCT_JOB : "下达作业"
MES_PRODUCT_JOB ||--o{ MES_PRODUCT_JOB_MATERIAL : "作业物料"
MES_PRODUCT_JOB ||--o{ MES_MATERIAL_REQUISITION : "领料"
MES_MATERIAL_REQUISITION ||--o{ MES_MATERIAL_REQUISITION_DETAIL : "1:N"
MES_PRODUCT_JOB ||--o{ MES_PRODUCT_FINISH : "完工"
MES_PRODUCT_JOB ||--o{ MES_PRODUCT_CHECK : "产品检验"
MES_MATERIAL_CHECK }o--|| WMS_MATERIAL_INFO : "物料检验"
MES_PROCESS_CHECK }o--|| MES_PRODUCT_JOB : "过程检验"
MES_FACTORY_MODEL {
bigint id PK
varchar factory_name
varchar line_name
}
MES_FACTORY_MODEL_DETAIL {
bigint id PK
bigint factory_id FK
bigint process_id FK
varchar equipment_name
}
MES_PROCESS_MODEL {
bigint id PK
varchar process_no
varchar process_name
decimal standard_hours
}
MES_PRODUCT_MODEL {
bigint id PK
varchar product_no
varchar product_name
}
MES_PRODUCT_MODEL_DETAIL {
bigint id PK
bigint product_id FK
bigint process_id FK
int sort
}
MES_PRODUCT_BOM {
bigint id PK
varchar bom_no
bigint product_id FK
}
MES_PRODUCT_BOM_DETAIL {
bigint id PK
bigint bom_id FK
bigint material_id FK
decimal quantity
}
MES_PRODUCT_PLAN {
bigint id PK
varchar plan_no
date plan_date
varchar status
}
MES_PRODUCT_PLAN_DETAIL {
bigint id PK
bigint plan_id FK
bigint product_id FK
decimal quantity
}
MES_PRODUCT_SCHEDULE {
bigint id PK
bigint plan_id FK
bigint line_id FK
date schedule_date
}
MES_PRODUCT_SCHEDULE_MATERIAL {
bigint id PK
bigint schedule_id FK
bigint material_id FK
decimal quantity
}
MES_PRODUCT_JOB {
bigint id PK
varchar job_no
bigint schedule_id FK
varchar status
}
MES_PRODUCT_JOB_MATERIAL {
bigint id PK
bigint job_id FK
bigint material_id FK
decimal quantity
}
MES_MATERIAL_REQUISITION {
bigint id PK
varchar requisition_no
bigint job_id FK
varchar apply_status
varchar audit_status
}
MES_MATERIAL_REQUISITION_DETAIL {
bigint id PK
bigint requisition_id FK
bigint material_id FK
decimal quantity
}
MES_PRODUCT_FINISH {
bigint id PK
bigint job_id FK
decimal finish_qty
decimal qualified_qty
}
MES_MATERIAL_CHECK {
bigint id PK
varchar check_no
bigint material_id FK
varchar result
}
MES_PROCESS_CHECK {
bigint id PK
varchar check_no
bigint job_id FK
varchar result
}
MES_PRODUCT_CHECK {
bigint id PK
varchar check_no
bigint job_id FK
varchar result
}
MES_CHECK_STANDARD {
bigint id PK
varchar standard_name
varchar item
}
MES_MISTAKE_PROOF {
bigint id PK
varchar proof_name
varchar rule
}
6.3 WMS ER 图
erDiagram
WMS_MATERIAL_CATEGORY ||--o{ WMS_MATERIAL_INFO : "1:N"
WMS_MATERIAL_INFO ||--o{ WMS_MATERIAL_TAG_TMPL : "标签"
WMS_WAREHOUSE ||--o{ WMS_WAREHOUSE_REGION : "1:N"
WMS_WAREHOUSE_REGION ||--o{ WMS_WAREHOUSE_LOCATION : "1:N"
WMS_WAREHOUSE_LOCATION ||--o{ WMS_WAREHOUSE_MATERIAL : "存放"
WMS_MATERIAL_INFO ||--o{ WMS_WAREHOUSE_MATERIAL : "1:N"
WMS_IN_WAREHOUSE_APPLY ||--o{ WMS_IN_WAREHOUSE_APPLY_DETAIL : "1:N"
WMS_OUT_WAREHOUSE_APPLY ||--o{ WMS_OUT_WAREHOUSE_APPLY_DETAIL : "1:N"
WMS_IN_WAREHOUSE_APPLY }o--|| WMS_WAREHOUSE : "入库"
WMS_OUT_WAREHOUSE_APPLY }o--|| WMS_WAREHOUSE : "出库"
WMS_WAREHOUSE_CHECK ||--o{ WMS_WAREHOUSE_MATERIAL : "盘点"
WMS_REPLENISH_APPLY ||--o{ WMS_REPLENISH_APPLY_DETAIL : "1:N"
WMS_WAREHOUSE_MATERIAL_MOVE }o--|| WMS_WAREHOUSE_MATERIAL : "移库"
WMS_MATERIAL_CATEGORY {
bigint id PK
varchar category_name
bigint parent_id
}
WMS_MATERIAL_INFO {
bigint id PK
varchar material_name
varchar model
varchar specification
varchar unit
bigint category_id FK
}
WMS_MATERIAL_TAG_TMPL {
bigint id PK
varchar tmpl_name
varchar content
}
WMS_WAREHOUSE {
bigint id PK
varchar warehouse_name
varchar address
}
WMS_WAREHOUSE_REGION {
bigint id PK
bigint warehouse_id FK
varchar region_name
}
WMS_WAREHOUSE_LOCATION {
bigint id PK
bigint region_id FK
varchar location_name
varchar code
}
WMS_WAREHOUSE_MATERIAL {
bigint id PK
bigint material_id FK
bigint location_id FK
decimal quantity
varchar batch_no
}
WMS_WAREHOUSE_MATERIAL_DETAIL {
bigint id PK
bigint warehouse_material_id FK
varchar batch_no
decimal quantity
}
WMS_IN_WAREHOUSE_APPLY {
bigint id PK
varchar apply_no
bigint warehouse_id FK
varchar status
}
WMS_IN_WAREHOUSE_APPLY_DETAIL {
bigint id PK
bigint apply_id FK
bigint material_id FK
decimal quantity
}
WMS_OUT_WAREHOUSE_APPLY {
bigint id PK
varchar apply_no
bigint warehouse_id FK
varchar status
}
WMS_OUT_WAREHOUSE_APPLY_DETAIL {
bigint id PK
bigint apply_id FK
bigint material_id FK
decimal quantity
}
WMS_WAREHOUSE_CHECK {
bigint id PK
varchar check_no
bigint warehouse_id FK
varchar status
}
WMS_REPLENISH_APPLY {
bigint id PK
varchar apply_no
bigint material_id FK
decimal quantity
}
WMS_REPLENISH_APPLY_DETAIL {
bigint id PK
bigint apply_id FK
bigint material_id FK
decimal quantity
}
WMS_WAREHOUSE_MATERIAL_MOVE {
bigint id PK
bigint material_id FK
bigint from_location_id FK
bigint to_location_id FK
decimal quantity
}
WMS_DISPATCH_BILL {
bigint id PK
varchar carrier_no
varchar carrier_user
date dispatch_date
}
WMS_DISPATCH_BILL_DETAIL {
bigint id PK
bigint dispatch_id FK
varchar goods_name
decimal quantity
}
WMS_CARRIER_APPLY {
bigint id PK
varchar apply_no
varchar status
}
WMS_DELIVERY_BILL {
bigint id PK
varchar delivery_no
bigint dispatch_id FK
}
6.4 招投标 ER 图
erDiagram
BID_BIDDING ||--o{ BID_BIDDING_FILES : "附件"
BID_ENTERPRISE ||--o{ BID_ENTERPRISE_BIDDING : "投标"
BID_BIDDING ||--o{ BID_ENTERPRISE_BIDDING : "被投标"
BID_ENTERPRISE_BIDDING ||--o{ BID_ENTERPRISE_BIDFILE : "投标材料"
BID_ENTERPRISE ||--o{ BID_ORDER : "下单"
BID_ORDER ||--o{ BID_ORDER_PAYMENT_RECORD : "支付"
BID_ORDER ||--o{ BID_ORDER_REFUND_RECORD : "退款"
BID_COMPLAINT ||--o{ BID_COMPLAINT_FILES : "附件"
BID_POLICYLAW ||--o{ BID_POLICYLAW_FILES : "附件"
BID_BIDDING {
bigint id PK
varchar bidding_name
date publish_date
date deadline
varchar status
}
BID_BIDDING_FILES {
bigint id PK
bigint bidding_id FK
varchar file_name
varchar file_url
}
BID_ENTERPRISE {
bigint id PK
varchar user_name
varchar name
varchar usci
varchar contact
bit pass
}
BID_ENTERPRISE_BIDDING {
bigint id PK
bigint enterprise_id FK
bigint bidding_id FK
varchar status
}
BID_ENTERPRISE_BIDFILE {
bigint id PK
bigint enterprise_bidding_id FK
varchar file_name
varchar file_url
}
BID_ORDER {
bigint id PK
varchar order_no
bigint enterprise_id FK
decimal amount
varchar status
}
BID_ORDER_PAYMENT_RECORD {
bigint id PK
bigint order_id FK
decimal amount
datetime pay_time
}
BID_ORDER_REFUND_RECORD {
bigint id PK
bigint order_id FK
decimal amount
datetime refund_time
}
BID_COMPLAINT {
bigint id PK
varchar title
varchar content
varchar status
}
BID_COMPLAINT_FILES {
bigint id PK
bigint complaint_id FK
varchar file_url
}
BID_POLICYLAW {
bigint id PK
varchar title
varchar cover
text content
}
BID_POLICYLAW_FILES {
bigint id PK
bigint policylaw_id FK
varchar file_url
}
BID_GOODS {
bigint id PK
varchar goods_name
decimal price
}
6.5 碳管理 ER 图
erDiagram
CF_ELECTRIC_CHECKPOINT ||--o{ TMP_ENERGY_CONSUME : "采集"
CF_CONFIG_EMISSION_FIXED ||--o{ CARBON_REPORT : "因子"
CF_CONFIG_EMISSION_CHANGE ||--o{ CARBON_REPORT : "因子"
CF_CONFIG_NEUTRAL ||--o{ CARBON_REPORT : "中和比例"
CF_ELECTRIC_CHECKPOINT {
bigint id PK
varchar checkpoint_name
varchar address
decimal power
decimal voltage
varchar status
}
TMP_ENERGY_CONSUME {
bigint id PK
varchar type
varchar category
varchar month
varchar day
decimal energy
}
CF_CONFIG_EMISSION_FIXED {
bigint id PK
varchar energy_type
decimal emission_factor
}
CF_CONFIG_EMISSION_CHANGE {
bigint id PK
varchar category
decimal emission_factor
}
CF_CONFIG_NEUTRAL {
bigint id PK
decimal neutral_ratio
}
CARBON_REPORT {
bigint id PK
varchar period
decimal emission
decimal neutral
}
DISTRIBUSION_ENTERPRISE_INFO {
bigint id PK
varchar enterprise_name
decimal quota
}
DISTRIBUSION_TOTAL_EMISSION {
bigint id PK
decimal total_emission
}
DISTRIBUSION_EMISSION_CAL {
bigint id PK
bigint enterprise_id FK
decimal change_amount
}
DISTRIBUSION_HISTORY {
bigint id PK
bigint enterprise_id FK
decimal quota
}
DISTRIBUSION_METHOD {
bigint id PK
varchar method_name
varchar formula
}
DISTRIBUSION_PRODUCT {
bigint id PK
varchar product_name
decimal price
}
6.6 系统管理 ER 图
erDiagram
SYS_USER ||--o{ SYS_USER_ROLE : "1:N"
SYS_ROLE ||--o{ SYS_USER_ROLE : "1:N"
SYS_ROLE ||--o{ SYS_ROLE_MENU : "1:N"
SYS_MENU ||--o{ SYS_ROLE_MENU : "1:N"
SYS_DEPT ||--o{ SYS_USER : "1:N"
SYS_USER ||--o{ SYS_USER_POST : "1:N"
SYS_POST ||--o{ SYS_USER_POST : "1:N"
SYS_DICT_TYPE ||--o{ SYS_DICT_DATA : "1:N"
SYS_USER {
bigint user_id PK
varchar user_name
varchar nick_name
varchar password
bigint dept_id FK
char status
}
SYS_ROLE {
bigint role_id PK
varchar role_name
varchar role_key
char status
}
SYS_MENU {
bigint menu_id PK
varchar menu_name
bigint parent_id
varchar path
varchar perms
}
SYS_USER_ROLE {
bigint user_id FK
bigint role_id FK
}
SYS_ROLE_MENU {
bigint role_id FK
bigint menu_id FK
}
SYS_DEPT {
bigint dept_id PK
bigint parent_id
varchar dept_name
}
SYS_POST {
bigint post_id PK
varchar post_code
varchar post_name
}
SYS_USER_POST {
bigint user_id FK
bigint post_id FK
}
SYS_DICT_TYPE {
bigint dict_id PK
varchar dict_name
varchar dict_type
}
SYS_DICT_DATA {
bigint dict_code PK
varchar dict_label
varchar dict_value
varchar dict_type FK
}
9. 模块级 UML(依据模块一赛题反推)
按 10 套赛题模块一的 72 个功能点,每个功能点均给出用例图、活动图、类图、时序图、E-R 图,详见配套图集:
- 《模式一:模块一 UML 图集(10 套)》:按套次与任务号编排
- 《模式二:UML 分类图册》:按图种分类编排