feat(mes): 添加定时同步可生产数量到WMS及BOM项相关标准字段

- 在main.go中添加定时任务每10分钟同步可生产数量到WMS系统
- 为BomItem实体添加relatedStandard字段及相关CRUD方法
- 为InspectionRecord实体添加reportNo、materialCode、materialName等字段
- 更新ent schema确保新字段的验证和默认值设置
- 添加必要的数据库迁移和字段映射逻辑
This commit is contained in:
SunYF
2026-09-17 12:49:07 +08:00
parent b4b274301d
commit 1cc93795ce
191 changed files with 24504 additions and 1250 deletions
+10
View File
@@ -96,6 +96,12 @@ func (_c *ProcessStepCreate) SetNillableNeedCheck(v *bool) *ProcessStepCreate {
return _c
}
// SetAttachment sets the "attachment" field.
func (_c *ProcessStepCreate) SetAttachment(v []map[string]string) *ProcessStepCreate {
_c.mutation.SetAttachment(v)
return _c
}
// SetRemark sets the "remark" field.
func (_c *ProcessStepCreate) SetRemark(v string) *ProcessStepCreate {
_c.mutation.SetRemark(v)
@@ -290,6 +296,10 @@ func (_c *ProcessStepCreate) createSpec() (*ProcessStep, *sqlgraph.CreateSpec) {
_spec.SetField(processstep.FieldNeedCheck, field.TypeBool, value)
_node.NeedCheck = value
}
if value, ok := _c.mutation.Attachment(); ok {
_spec.SetField(processstep.FieldAttachment, field.TypeJSON, value)
_node.Attachment = value
}
if value, ok := _c.mutation.Remark(); ok {
_spec.SetField(processstep.FieldRemark, field.TypeString, value)
_node.Remark = value