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
+6
View File
@@ -32,6 +32,8 @@ type Tx struct {
InventoryLock *InventoryLockClient
// Material is the client for interacting with the Material builders.
Material *MaterialClient
// MaterialDemand is the client for interacting with the MaterialDemand builders.
MaterialDemand *MaterialDemandClient
// OrderMaterialLedger is the client for interacting with the OrderMaterialLedger builders.
OrderMaterialLedger *OrderMaterialLedgerClient
// OutboundDetail is the client for interacting with the OutboundDetail builders.
@@ -40,6 +42,8 @@ type Tx struct {
OutboundOrder *OutboundOrderClient
// Permission is the client for interacting with the Permission builders.
Permission *PermissionClient
// ProducibleSnapshot is the client for interacting with the ProducibleSnapshot builders.
ProducibleSnapshot *ProducibleSnapshotClient
// ReturnOrder is the client for interacting with the ReturnOrder builders.
ReturnOrder *ReturnOrderClient
// Role is the client for interacting with the Role builders.
@@ -195,10 +199,12 @@ func (tx *Tx) init() {
tx.Inventory = NewInventoryClient(tx.config)
tx.InventoryLock = NewInventoryLockClient(tx.config)
tx.Material = NewMaterialClient(tx.config)
tx.MaterialDemand = NewMaterialDemandClient(tx.config)
tx.OrderMaterialLedger = NewOrderMaterialLedgerClient(tx.config)
tx.OutboundDetail = NewOutboundDetailClient(tx.config)
tx.OutboundOrder = NewOutboundOrderClient(tx.config)
tx.Permission = NewPermissionClient(tx.config)
tx.ProducibleSnapshot = NewProducibleSnapshotClient(tx.config)
tx.ReturnOrder = NewReturnOrderClient(tx.config)
tx.Role = NewRoleClient(tx.config)
tx.SemiFinished = NewSemiFinishedClient(tx.config)