feat(mes): 添加定时同步可生产数量到WMS及BOM项相关标准字段
- 在main.go中添加定时任务每10分钟同步可生产数量到WMS系统 - 为BomItem实体添加relatedStandard字段及相关CRUD方法 - 为InspectionRecord实体添加reportNo、materialCode、materialName等字段 - 更新ent schema确保新字段的验证和默认值设置 - 添加必要的数据库迁移和字段映射逻辑
This commit is contained in:
@@ -25,6 +25,8 @@ const (
|
||||
FieldIsTorque = "is_torque"
|
||||
// FieldNeedCheck holds the string denoting the needcheck field in the database.
|
||||
FieldNeedCheck = "need_check"
|
||||
// FieldAttachment holds the string denoting the attachment field in the database.
|
||||
FieldAttachment = "attachment"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
@@ -42,6 +44,7 @@ var Columns = []string{
|
||||
FieldCollectType,
|
||||
FieldIsTorque,
|
||||
FieldNeedCheck,
|
||||
FieldAttachment,
|
||||
FieldRemark,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user