feat: 完成多模块迭代更新

- 新增过程巡检按步骤上报、数量不符上报、工位退料功能
- 增加工单工程编号三级归属字段
- 新增物料安全库存与缺货预警
- 新增附件管理、退库单管理模块
- 优化生产看板展示逻辑与前端页面文案
- 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
SunYF
2026-09-15 16:37:39 +08:00
parent 951f3dfecd
commit 4a5e2d7bac
494 changed files with 24702 additions and 139223 deletions
+21 -5
View File
@@ -17,8 +17,9 @@ import (
// UserStationUpdate is the builder for updating UserStation entities.
type UserStationUpdate struct {
config
hooks []Hook
mutation *UserStationMutation
hooks []Hook
mutation *UserStationMutation
modifiers []func(*sql.UpdateBuilder)
}
// Where appends a list predicates to the UserStationUpdate builder.
@@ -101,6 +102,12 @@ func (_u *UserStationUpdate) ExecX(ctx context.Context) {
}
}
// Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (_u *UserStationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *UserStationUpdate {
_u.modifiers = append(_u.modifiers, modifiers...)
return _u
}
func (_u *UserStationUpdate) sqlSave(ctx context.Context) (_node int, err error) {
_spec := sqlgraph.NewUpdateSpec(userstation.Table, userstation.Columns, sqlgraph.NewFieldSpec(userstation.FieldID, field.TypeInt))
if ps := _u.mutation.predicates; len(ps) > 0 {
@@ -122,6 +129,7 @@ func (_u *UserStationUpdate) sqlSave(ctx context.Context) (_node int, err error)
if value, ok := _u.mutation.AddedStationNo(); ok {
_spec.AddField(userstation.FieldStationNo, field.TypeInt, value)
}
_spec.AddModifiers(_u.modifiers...)
if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil {
if _, ok := err.(*sqlgraph.NotFoundError); ok {
err = &NotFoundError{userstation.Label}
@@ -137,9 +145,10 @@ func (_u *UserStationUpdate) sqlSave(ctx context.Context) (_node int, err error)
// UserStationUpdateOne is the builder for updating a single UserStation entity.
type UserStationUpdateOne struct {
config
fields []string
hooks []Hook
mutation *UserStationMutation
fields []string
hooks []Hook
mutation *UserStationMutation
modifiers []func(*sql.UpdateBuilder)
}
// SetUserId sets the "userId" field.
@@ -229,6 +238,12 @@ func (_u *UserStationUpdateOne) ExecX(ctx context.Context) {
}
}
// Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (_u *UserStationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *UserStationUpdateOne {
_u.modifiers = append(_u.modifiers, modifiers...)
return _u
}
func (_u *UserStationUpdateOne) sqlSave(ctx context.Context) (_node *UserStation, err error) {
_spec := sqlgraph.NewUpdateSpec(userstation.Table, userstation.Columns, sqlgraph.NewFieldSpec(userstation.FieldID, field.TypeInt))
id, ok := _u.mutation.ID()
@@ -267,6 +282,7 @@ func (_u *UserStationUpdateOne) sqlSave(ctx context.Context) (_node *UserStation
if value, ok := _u.mutation.AddedStationNo(); ok {
_spec.AddField(userstation.FieldStationNo, field.TypeInt, value)
}
_spec.AddModifiers(_u.modifiers...)
_node = &UserStation{config: _u.config}
_spec.Assign = _node.assignValues
_spec.ScanValues = _node.scanValues