feat: 核心业务实体扩充(混产模板/产品BOM/试制记录)、WMS 库存检验增强与前端通用能力
- MES 新增实体:混产模板、产品BOM、产品工艺物料、试制记录(schema + ent 生成码 + logic/handler/前端页) - WMS 实体增强:检验记录、库存、半成品重构;新增序列号库存与短缺代报 - AGV 与产能:AGV 手动点位与链路、物料守卫、短缺预测、原因字典 - 前端通用能力:新增下一步引导组件 NextStepBar,统一帮助文档/布局/请求拦截与操作列 - 工位终端:界面与各 handler 调整(api/store/绑定/PLC/拧紧/上报等) - 配置与文档:更新 mes-api.yaml、WMS README 及案例/产线API/问题记录/项目说明/流程说明
This commit is contained in:
@@ -65,6 +65,8 @@ const (
|
||||
FieldTestRecordNo = "test_record_no"
|
||||
// FieldRecordedBy holds the string denoting the recorded_by field in the database.
|
||||
FieldRecordedBy = "recorded_by"
|
||||
// FieldRecordedByID holds the string denoting the recorded_by_id field in the database.
|
||||
FieldRecordedByID = "recorded_by_id"
|
||||
// FieldRecordedAt holds the string denoting the recorded_at field in the database.
|
||||
FieldRecordedAt = "recorded_at"
|
||||
// FieldOutboundReason holds the string denoting the outbound_reason field in the database.
|
||||
@@ -111,6 +113,7 @@ var Columns = []string{
|
||||
FieldRelatedStandard,
|
||||
FieldTestRecordNo,
|
||||
FieldRecordedBy,
|
||||
FieldRecordedByID,
|
||||
FieldRecordedAt,
|
||||
FieldOutboundReason,
|
||||
FieldStocktakeNo,
|
||||
@@ -303,6 +306,11 @@ func ByRecordedBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRecordedBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRecordedByID orders the results by the recorded_by_id field.
|
||||
func ByRecordedByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRecordedByID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRecordedAt orders the results by the recorded_at field.
|
||||
func ByRecordedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRecordedAt, opts...).ToFunc()
|
||||
|
||||
@@ -188,6 +188,11 @@ func RecordedBy(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByID applies equality check predicate on the "recorded_by_id" field. It's identical to RecordedByIDEQ.
|
||||
func RecordedByID(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedByID, v))
|
||||
}
|
||||
|
||||
// RecordedAt applies equality check predicate on the "recorded_at" field. It's identical to RecordedAtEQ.
|
||||
func RecordedAt(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedAt, v))
|
||||
@@ -2018,6 +2023,56 @@ func RecordedByContainsFold(v string) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldContainsFold(FieldRecordedBy, v))
|
||||
}
|
||||
|
||||
// RecordedByIDEQ applies the EQ predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDEQ(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedByID, v))
|
||||
}
|
||||
|
||||
// RecordedByIDNEQ applies the NEQ predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDNEQ(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNEQ(FieldRecordedByID, v))
|
||||
}
|
||||
|
||||
// RecordedByIDIn applies the In predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDIn(vs ...int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIn(FieldRecordedByID, vs...))
|
||||
}
|
||||
|
||||
// RecordedByIDNotIn applies the NotIn predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDNotIn(vs ...int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotIn(FieldRecordedByID, vs...))
|
||||
}
|
||||
|
||||
// RecordedByIDGT applies the GT predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDGT(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGT(FieldRecordedByID, v))
|
||||
}
|
||||
|
||||
// RecordedByIDGTE applies the GTE predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDGTE(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldGTE(FieldRecordedByID, v))
|
||||
}
|
||||
|
||||
// RecordedByIDLT applies the LT predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDLT(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLT(FieldRecordedByID, v))
|
||||
}
|
||||
|
||||
// RecordedByIDLTE applies the LTE predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDLTE(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldLTE(FieldRecordedByID, v))
|
||||
}
|
||||
|
||||
// RecordedByIDIsNil applies the IsNil predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDIsNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldIsNull(FieldRecordedByID))
|
||||
}
|
||||
|
||||
// RecordedByIDNotNil applies the NotNil predicate on the "recorded_by_id" field.
|
||||
func RecordedByIDNotNil() predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldNotNull(FieldRecordedByID))
|
||||
}
|
||||
|
||||
// RecordedAtEQ applies the EQ predicate on the "recorded_at" field.
|
||||
func RecordedAtEQ(v int64) predicate.Inventory {
|
||||
return predicate.Inventory(sql.FieldEQ(FieldRecordedAt, v))
|
||||
|
||||
Reference in New Issue
Block a user