docs(business): 生成业务契约文档并重构MES客户端代码
- 创建案例.md文档,包含业务场景清单、业务流程、案例和回归测试三份完整文档 - WMS库房管理系统涵盖入库、出库、库存、检验、盘点等24个业务场景 - MES产线控制系统包含工单、排产、BOM、备料、质检、追溯等23个业务场景 - 工位终端系统支持上线、报工、下线、领料、巡检等15个现场作业场景 - 主链路从合同到成品入库,异常链路处理不合格、数量不符、退料等情况 - 删除MES客户端中的ScanRecord相关代码,精简客户端结构 - 更新客户端初始化逻辑,移除扫描记录相关的依赖注入配置
This commit is contained in:
@@ -645,46 +645,6 @@ var (
|
||||
},
|
||||
},
|
||||
}
|
||||
// ScanRecordColumns holds the columns for the "scan_record" table.
|
||||
ScanRecordColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt, Increment: true},
|
||||
{Name: "station", Type: field.TypeString, Size: 32, Default: ""},
|
||||
{Name: "sn", Type: field.TypeString, Size: 64},
|
||||
{Name: "order_no", Type: field.TypeString, Size: 64, Default: ""},
|
||||
{Name: "type", Type: field.TypeString, Size: 20, Default: "PROCESS"},
|
||||
{Name: "process_code", Type: field.TypeInt, Nullable: true},
|
||||
{Name: "operator", Type: field.TypeString, Size: 64, Default: ""},
|
||||
{Name: "time", Type: field.TypeTime},
|
||||
{Name: "created_at", Type: field.TypeTime},
|
||||
}
|
||||
// ScanRecordTable holds the schema information for the "scan_record" table.
|
||||
ScanRecordTable = &schema.Table{
|
||||
Name: "scan_record",
|
||||
Columns: ScanRecordColumns,
|
||||
PrimaryKey: []*schema.Column{ScanRecordColumns[0]},
|
||||
Indexes: []*schema.Index{
|
||||
{
|
||||
Name: "scanrecord_station",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{ScanRecordColumns[1]},
|
||||
},
|
||||
{
|
||||
Name: "scanrecord_sn",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{ScanRecordColumns[2]},
|
||||
},
|
||||
{
|
||||
Name: "scanrecord_order_no",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{ScanRecordColumns[3]},
|
||||
},
|
||||
{
|
||||
Name: "scanrecord_created_at",
|
||||
Unique: false,
|
||||
Columns: []*schema.Column{ScanRecordColumns[8]},
|
||||
},
|
||||
},
|
||||
}
|
||||
// SemiFlowColumns holds the columns for the "semi_flow" table.
|
||||
SemiFlowColumns = []*schema.Column{
|
||||
{Name: "id", Type: field.TypeInt, Increment: true},
|
||||
@@ -1181,7 +1141,6 @@ var (
|
||||
ProcessStepTable,
|
||||
ProductTypeTable,
|
||||
RoleTable,
|
||||
ScanRecordTable,
|
||||
SemiFlowTable,
|
||||
StationTable,
|
||||
StationProcessTable,
|
||||
@@ -1253,9 +1212,6 @@ func init() {
|
||||
RoleTable.Annotation = &entsql.Annotation{
|
||||
Table: "role",
|
||||
}
|
||||
ScanRecordTable.Annotation = &entsql.Annotation{
|
||||
Table: "scan_record",
|
||||
}
|
||||
SemiFlowTable.Annotation = &entsql.Annotation{
|
||||
Table: "semi_flow",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user