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