docs(test): 更新电表箱装配业务回归测试文档

- 将文档从代码审计任务转换为端到端业务回归测试链路
- 重新组织文档结构为链路总览、示例数据基线和详细步骤
- 添加完整的业务场景清单涵盖WMS/MES/工位终端三大系统
- 定义统一的测试数据包括产品型号、物料清单、工位派工等
- 提供详细的步骤断言和数量等式验证方法
- 建立贯穿全链路的数据流向和状态变更追踪体系
This commit is contained in:
SunYF
2026-09-21 10:48:53 +08:00
parent 0d34bcd6a3
commit 132c3ed6bd
63 changed files with 3309 additions and 5784 deletions
+43
View File
@@ -9,6 +9,7 @@ import (
"bj_power_mes/ent/attachment"
"bj_power_mes/ent/bomitem"
"bj_power_mes/ent/dailyplan"
"bj_power_mes/ent/dock"
"bj_power_mes/ent/eventlog"
"bj_power_mes/ent/inspectionrecord"
"bj_power_mes/ent/linepoint"
@@ -368,6 +369,48 @@ func init() {
dailyplanDescID := dailyplanFields[0].Descriptor()
// dailyplan.IDValidator is a validator for the "id" field. It is called by the builders before save.
dailyplan.IDValidator = dailyplanDescID.Validators[0].(func(int) error)
dockFields := schema.Dock{}.Fields()
_ = dockFields
// dockDescDockCode is the schema descriptor for dockCode field.
dockDescDockCode := dockFields[0].Descriptor()
// dock.DockCodeValidator is a validator for the "dockCode" field. It is called by the builders before save.
dock.DockCodeValidator = dockDescDockCode.Validators[0].(func(string) error)
// dockDescName is the schema descriptor for name field.
dockDescName := dockFields[1].Descriptor()
// dock.DefaultName holds the default value on creation for the name field.
dock.DefaultName = dockDescName.Default.(string)
// dock.NameValidator is a validator for the "name" field. It is called by the builders before save.
dock.NameValidator = dockDescName.Validators[0].(func(string) error)
// dockDescDockType is the schema descriptor for dockType field.
dockDescDockType := dockFields[2].Descriptor()
// dock.DefaultDockType holds the default value on creation for the dockType field.
dock.DefaultDockType = dockDescDockType.Default.(string)
// dock.DockTypeValidator is a validator for the "dockType" field. It is called by the builders before save.
dock.DockTypeValidator = dockDescDockType.Validators[0].(func(string) error)
// dockDescStationNo is the schema descriptor for stationNo field.
dockDescStationNo := dockFields[3].Descriptor()
// dock.DefaultStationNo holds the default value on creation for the stationNo field.
dock.DefaultStationNo = dockDescStationNo.Default.(int)
// dockDescHasPallet is the schema descriptor for hasPallet field.
dockDescHasPallet := dockFields[4].Descriptor()
// dock.DefaultHasPallet holds the default value on creation for the hasPallet field.
dock.DefaultHasPallet = dockDescHasPallet.Default.(bool)
// dockDescPalletRef is the schema descriptor for palletRef field.
dockDescPalletRef := dockFields[5].Descriptor()
// dock.DefaultPalletRef holds the default value on creation for the palletRef field.
dock.DefaultPalletRef = dockDescPalletRef.Default.(string)
// dock.PalletRefValidator is a validator for the "palletRef" field. It is called by the builders before save.
dock.PalletRefValidator = dockDescPalletRef.Validators[0].(func(string) error)
// dockDescStatus is the schema descriptor for status field.
dockDescStatus := dockFields[6].Descriptor()
// dock.DefaultStatus holds the default value on creation for the status field.
dock.DefaultStatus = dockDescStatus.Default.(string)
// dock.StatusValidator is a validator for the "status" field. It is called by the builders before save.
dock.StatusValidator = dockDescStatus.Validators[0].(func(string) error)
// dockDescCreatedAt is the schema descriptor for createdAt field.
dockDescCreatedAt := dockFields[7].Descriptor()
// dock.DefaultCreatedAt holds the default value on creation for the createdAt field.
dock.DefaultCreatedAt = dockDescCreatedAt.Default.(func() time.Time)
eventlogFields := schema.EventLog{}.Fields()
_ = eventlogFields
// eventlogDescEventType is the schema descriptor for eventType field.