feat: 重构BOM架构,新增基础设置与虚拟工位管理功能
本次重构删除原有BOM物料清单表,改用工单工艺组合×工艺物料清单作为唯一用料来源;新增系统基础设置表支持WMS地址、日志保留天数等配置,新增虚拟工位作业管理后台接口与前端页签控制功能,同时优化工位号校验逻辑、事件日志自动清理与工单用料查询能力。
This commit is contained in:
@@ -56,18 +56,6 @@ func (f AttachmentFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value,
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.AttachmentMutation", m)
|
||||
}
|
||||
|
||||
// The BomItemFunc type is an adapter to allow the use of ordinary
|
||||
// function as BomItem mutator.
|
||||
type BomItemFunc func(context.Context, *ent.BomItemMutation) (ent.Value, error)
|
||||
|
||||
// Mutate calls f(ctx, m).
|
||||
func (f BomItemFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
|
||||
if mv, ok := m.(*ent.BomItemMutation); ok {
|
||||
return f(ctx, mv)
|
||||
}
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.BomItemMutation", m)
|
||||
}
|
||||
|
||||
// The DailyPlanFunc type is an adapter to allow the use of ordinary
|
||||
// function as DailyPlan mutator.
|
||||
type DailyPlanFunc func(context.Context, *ent.DailyPlanMutation) (ent.Value, error)
|
||||
@@ -296,6 +284,18 @@ func (f StepDataFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, er
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.StepDataMutation", m)
|
||||
}
|
||||
|
||||
// The SysConfigFunc type is an adapter to allow the use of ordinary
|
||||
// function as SysConfig mutator.
|
||||
type SysConfigFunc func(context.Context, *ent.SysConfigMutation) (ent.Value, error)
|
||||
|
||||
// Mutate calls f(ctx, m).
|
||||
func (f SysConfigFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) {
|
||||
if mv, ok := m.(*ent.SysConfigMutation); ok {
|
||||
return f(ctx, mv)
|
||||
}
|
||||
return nil, fmt.Errorf("unexpected mutation type %T. expect *ent.SysConfigMutation", m)
|
||||
}
|
||||
|
||||
// The TorqueAuditLogFunc type is an adapter to allow the use of ordinary
|
||||
// function as TorqueAuditLog mutator.
|
||||
type TorqueAuditLogFunc func(context.Context, *ent.TorqueAuditLogMutation) (ent.Value, error)
|
||||
|
||||
Reference in New Issue
Block a user