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