feat: 新增预警与附件模块,优化工位派工功能
1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
@@ -17,9 +17,8 @@ import (
|
||||
// UserStationUpdate is the builder for updating UserStation entities.
|
||||
type UserStationUpdate struct {
|
||||
config
|
||||
hooks []Hook
|
||||
mutation *UserStationMutation
|
||||
modifiers []func(*sql.UpdateBuilder)
|
||||
hooks []Hook
|
||||
mutation *UserStationMutation
|
||||
}
|
||||
|
||||
// Where appends a list predicates to the UserStationUpdate builder.
|
||||
@@ -102,12 +101,6 @@ 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 {
|
||||
@@ -129,7 +122,6 @@ 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}
|
||||
@@ -145,10 +137,9 @@ 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
|
||||
modifiers []func(*sql.UpdateBuilder)
|
||||
fields []string
|
||||
hooks []Hook
|
||||
mutation *UserStationMutation
|
||||
}
|
||||
|
||||
// SetUserId sets the "userId" field.
|
||||
@@ -238,12 +229,6 @@ 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()
|
||||
@@ -282,7 +267,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user