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
+4
View File
@@ -13,10 +13,12 @@ import (
"bj_power_wms/ent/inventory"
"bj_power_wms/ent/inventorylock"
"bj_power_wms/ent/material"
"bj_power_wms/ent/materialdemand"
"bj_power_wms/ent/ordermaterialledger"
"bj_power_wms/ent/outbounddetail"
"bj_power_wms/ent/outboundorder"
"bj_power_wms/ent/permission"
"bj_power_wms/ent/produciblesnapshot"
"bj_power_wms/ent/returnorder"
"bj_power_wms/ent/role"
"bj_power_wms/ent/semifinished"
@@ -103,10 +105,12 @@ func checkColumn(t, c string) error {
inventory.Table: inventory.ValidColumn,
inventorylock.Table: inventorylock.ValidColumn,
material.Table: material.ValidColumn,
materialdemand.Table: materialdemand.ValidColumn,
ordermaterialledger.Table: ordermaterialledger.ValidColumn,
outbounddetail.Table: outbounddetail.ValidColumn,
outboundorder.Table: outboundorder.ValidColumn,
permission.Table: permission.ValidColumn,
produciblesnapshot.Table: produciblesnapshot.ValidColumn,
returnorder.Table: returnorder.ValidColumn,
role.Table: role.ValidColumn,
semifinished.Table: semifinished.ValidColumn,