feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -17,8 +17,9 @@ import (
|
||||
// StationProcessUpdate is the builder for updating StationProcess entities.
|
||||
type StationProcessUpdate struct {
|
||||
config
|
||||
hooks []Hook
|
||||
mutation *StationProcessMutation
|
||||
hooks []Hook
|
||||
mutation *StationProcessMutation
|
||||
modifiers []func(*sql.UpdateBuilder)
|
||||
}
|
||||
|
||||
// Where appends a list predicates to the StationProcessUpdate builder.
|
||||
@@ -163,6 +164,12 @@ func (_u *StationProcessUpdate) check() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
|
||||
func (_u *StationProcessUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *StationProcessUpdate {
|
||||
_u.modifiers = append(_u.modifiers, modifiers...)
|
||||
return _u
|
||||
}
|
||||
|
||||
func (_u *StationProcessUpdate) sqlSave(ctx context.Context) (_node int, err error) {
|
||||
if err := _u.check(); err != nil {
|
||||
return _node, err
|
||||
@@ -196,6 +203,7 @@ func (_u *StationProcessUpdate) sqlSave(ctx context.Context) (_node int, err err
|
||||
if value, ok := _u.mutation.Operator(); ok {
|
||||
_spec.SetField(stationprocess.FieldOperator, field.TypeString, value)
|
||||
}
|
||||
_spec.AddModifiers(_u.modifiers...)
|
||||
if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil {
|
||||
if _, ok := err.(*sqlgraph.NotFoundError); ok {
|
||||
err = &NotFoundError{stationprocess.Label}
|
||||
@@ -211,9 +219,10 @@ func (_u *StationProcessUpdate) sqlSave(ctx context.Context) (_node int, err err
|
||||
// StationProcessUpdateOne is the builder for updating a single StationProcess entity.
|
||||
type StationProcessUpdateOne struct {
|
||||
config
|
||||
fields []string
|
||||
hooks []Hook
|
||||
mutation *StationProcessMutation
|
||||
fields []string
|
||||
hooks []Hook
|
||||
mutation *StationProcessMutation
|
||||
modifiers []func(*sql.UpdateBuilder)
|
||||
}
|
||||
|
||||
// SetStationNo sets the "stationNo" field.
|
||||
@@ -365,6 +374,12 @@ func (_u *StationProcessUpdateOne) check() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
|
||||
func (_u *StationProcessUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *StationProcessUpdateOne {
|
||||
_u.modifiers = append(_u.modifiers, modifiers...)
|
||||
return _u
|
||||
}
|
||||
|
||||
func (_u *StationProcessUpdateOne) sqlSave(ctx context.Context) (_node *StationProcess, err error) {
|
||||
if err := _u.check(); err != nil {
|
||||
return _node, err
|
||||
@@ -415,6 +430,7 @@ func (_u *StationProcessUpdateOne) sqlSave(ctx context.Context) (_node *StationP
|
||||
if value, ok := _u.mutation.Operator(); ok {
|
||||
_spec.SetField(stationprocess.FieldOperator, field.TypeString, value)
|
||||
}
|
||||
_spec.AddModifiers(_u.modifiers...)
|
||||
_node = &StationProcess{config: _u.config}
|
||||
_spec.Assign = _node.assignValues
|
||||
_spec.ScanValues = _node.scanValues
|
||||
|
||||
Reference in New Issue
Block a user