feat: 完成附件存储重构与磁盘监控功能,同步物料档案与入库单规则更新
1. 新增跨平台磁盘空间监控能力,每日7点自动检测附件目录剩余空间,触发阈值告警 2. 重构附件存储方案为年/月/日/文件类型分层结构,统一MES与WMS的附件管理逻辑 3. 对齐物料档案与入库单的质量状态校验规则,仅合格品计入库存与出库 4. 实现入库单作废功能与区域库位的多级父子结构管理 5. 删除物料简称字段,补充规格型号与单位必填项,统一系统数据口径 6. 新增附件中心与磁盘状态查询接口,完善权限控制与操作日志
This commit is contained in:
@@ -33,20 +33,6 @@ func (_c *MaterialCreate) SetName(v string) *MaterialCreate {
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetShortName sets the "short_name" field.
|
||||
func (_c *MaterialCreate) SetShortName(v string) *MaterialCreate {
|
||||
_c.mutation.SetShortName(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableShortName sets the "short_name" field if the given value is not nil.
|
||||
func (_c *MaterialCreate) SetNillableShortName(v *string) *MaterialCreate {
|
||||
if v != nil {
|
||||
_c.SetShortName(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetSpec sets the "spec" field.
|
||||
func (_c *MaterialCreate) SetSpec(v string) *MaterialCreate {
|
||||
_c.mutation.SetSpec(v)
|
||||
@@ -351,10 +337,6 @@ func (_c *MaterialCreate) createSpec() (*Material, *sqlgraph.CreateSpec) {
|
||||
_spec.SetField(material.FieldName, field.TypeString, value)
|
||||
_node.Name = value
|
||||
}
|
||||
if value, ok := _c.mutation.ShortName(); ok {
|
||||
_spec.SetField(material.FieldShortName, field.TypeString, value)
|
||||
_node.ShortName = value
|
||||
}
|
||||
if value, ok := _c.mutation.Spec(); ok {
|
||||
_spec.SetField(material.FieldSpec, field.TypeString, value)
|
||||
_node.Spec = value
|
||||
@@ -479,24 +461,6 @@ func (u *MaterialUpsert) UpdateName() *MaterialUpsert {
|
||||
return u
|
||||
}
|
||||
|
||||
// SetShortName sets the "short_name" field.
|
||||
func (u *MaterialUpsert) SetShortName(v string) *MaterialUpsert {
|
||||
u.Set(material.FieldShortName, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdateShortName sets the "short_name" field to the value that was provided on create.
|
||||
func (u *MaterialUpsert) UpdateShortName() *MaterialUpsert {
|
||||
u.SetExcluded(material.FieldShortName)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearShortName clears the value of the "short_name" field.
|
||||
func (u *MaterialUpsert) ClearShortName() *MaterialUpsert {
|
||||
u.SetNull(material.FieldShortName)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetSpec sets the "spec" field.
|
||||
func (u *MaterialUpsert) SetSpec(v string) *MaterialUpsert {
|
||||
u.Set(material.FieldSpec, v)
|
||||
@@ -763,27 +727,6 @@ func (u *MaterialUpsertOne) UpdateName() *MaterialUpsertOne {
|
||||
})
|
||||
}
|
||||
|
||||
// SetShortName sets the "short_name" field.
|
||||
func (u *MaterialUpsertOne) SetShortName(v string) *MaterialUpsertOne {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
s.SetShortName(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateShortName sets the "short_name" field to the value that was provided on create.
|
||||
func (u *MaterialUpsertOne) UpdateShortName() *MaterialUpsertOne {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
s.UpdateShortName()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearShortName clears the value of the "short_name" field.
|
||||
func (u *MaterialUpsertOne) ClearShortName() *MaterialUpsertOne {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
s.ClearShortName()
|
||||
})
|
||||
}
|
||||
|
||||
// SetSpec sets the "spec" field.
|
||||
func (u *MaterialUpsertOne) SetSpec(v string) *MaterialUpsertOne {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
@@ -1247,27 +1190,6 @@ func (u *MaterialUpsertBulk) UpdateName() *MaterialUpsertBulk {
|
||||
})
|
||||
}
|
||||
|
||||
// SetShortName sets the "short_name" field.
|
||||
func (u *MaterialUpsertBulk) SetShortName(v string) *MaterialUpsertBulk {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
s.SetShortName(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateShortName sets the "short_name" field to the value that was provided on create.
|
||||
func (u *MaterialUpsertBulk) UpdateShortName() *MaterialUpsertBulk {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
s.UpdateShortName()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearShortName clears the value of the "short_name" field.
|
||||
func (u *MaterialUpsertBulk) ClearShortName() *MaterialUpsertBulk {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
s.ClearShortName()
|
||||
})
|
||||
}
|
||||
|
||||
// SetSpec sets the "spec" field.
|
||||
func (u *MaterialUpsertBulk) SetSpec(v string) *MaterialUpsertBulk {
|
||||
return u.Update(func(s *MaterialUpsert) {
|
||||
|
||||
Reference in New Issue
Block a user