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
@@ -5,7 +5,6 @@ package ent
import (
"bj_power_wms/ent/agvtask"
"bj_power_wms/ent/attachment"
"bj_power_wms/ent/dock"
"bj_power_wms/ent/eventlog"
"bj_power_wms/ent/inbounddetail"
"bj_power_wms/ent/inboundorder"
@@ -117,48 +116,6 @@ func init() {
attachmentDescCreatedAt := attachmentFields[15].Descriptor()
// attachment.DefaultCreatedAt holds the default value on creation for the created_at field.
attachment.DefaultCreatedAt = attachmentDescCreatedAt.Default.(func() int64)
dockFields := schema.Dock{}.Fields()
_ = dockFields
// dockDescDockCode is the schema descriptor for dock_code field.
dockDescDockCode := dockFields[0].Descriptor()
// dock.DockCodeValidator is a validator for the "dock_code" 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 dock_type field.
dockDescDockType := dockFields[2].Descriptor()
// dock.DefaultDockType holds the default value on creation for the dock_type field.
dock.DefaultDockType = dockDescDockType.Default.(string)
// dock.DockTypeValidator is a validator for the "dock_type" field. It is called by the builders before save.
dock.DockTypeValidator = dockDescDockType.Validators[0].(func(string) error)
// dockDescStationNo is the schema descriptor for station_no field.
dockDescStationNo := dockFields[3].Descriptor()
// dock.DefaultStationNo holds the default value on creation for the station_no field.
dock.DefaultStationNo = dockDescStationNo.Default.(int)
// dockDescHasPallet is the schema descriptor for has_pallet field.
dockDescHasPallet := dockFields[4].Descriptor()
// dock.DefaultHasPallet holds the default value on creation for the has_pallet field.
dock.DefaultHasPallet = dockDescHasPallet.Default.(bool)
// dockDescPalletRef is the schema descriptor for pallet_ref field.
dockDescPalletRef := dockFields[5].Descriptor()
// dock.DefaultPalletRef holds the default value on creation for the pallet_ref field.
dock.DefaultPalletRef = dockDescPalletRef.Default.(string)
// dock.PalletRefValidator is a validator for the "pallet_ref" 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 created_at field.
dockDescCreatedAt := dockFields[7].Descriptor()
// dock.DefaultCreatedAt holds the default value on creation for the created_at field.
dock.DefaultCreatedAt = dockDescCreatedAt.Default.(func() int64)
eventlogFields := schema.EventLog{}.Fields()
_ = eventlogFields
// eventlogDescEventType is the schema descriptor for event_type field.