docs(deployment): 更新部署手册和业务架构说明
- 更新MES和WMS服务端口配置说明 - 详细说明产线工位设备配置(扫码枪+拧紧枪) - 明确AGV配送和接驳台的模拟模式与真实对接方案 - 更新WMS中AGV配送默认模拟模式说明 - 完善厂内物流(AGV/接驳台)的业务架构约束 - 修订临时文档为详细的项目问题和解决方案规划
This commit is contained in:
@@ -383,6 +383,20 @@ func (_c *InventoryCreate) SetNillableOutboundReason(v *string) *InventoryCreate
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetStocktakeNo sets the "stocktake_no" field.
|
||||
func (_c *InventoryCreate) SetStocktakeNo(v string) *InventoryCreate {
|
||||
_c.mutation.SetStocktakeNo(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableStocktakeNo sets the "stocktake_no" field if the given value is not nil.
|
||||
func (_c *InventoryCreate) SetNillableStocktakeNo(v *string) *InventoryCreate {
|
||||
if v != nil {
|
||||
_c.SetStocktakeNo(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetRemark sets the "remark" field.
|
||||
func (_c *InventoryCreate) SetRemark(v string) *InventoryCreate {
|
||||
_c.mutation.SetRemark(v)
|
||||
@@ -488,6 +502,10 @@ func (_c *InventoryCreate) defaults() {
|
||||
v := inventory.DefaultCompletedProcess
|
||||
_c.mutation.SetCompletedProcess(v)
|
||||
}
|
||||
if _, ok := _c.mutation.StocktakeNo(); !ok {
|
||||
v := inventory.DefaultStocktakeNo
|
||||
_c.mutation.SetStocktakeNo(v)
|
||||
}
|
||||
if _, ok := _c.mutation.CreatedAt(); !ok {
|
||||
v := inventory.DefaultCreatedAt()
|
||||
_c.mutation.SetCreatedAt(v)
|
||||
@@ -537,6 +555,14 @@ func (_c *InventoryCreate) check() error {
|
||||
return &ValidationError{Name: "completed_process", err: fmt.Errorf(`ent: validator failed for field "Inventory.completed_process": %w`, err)}
|
||||
}
|
||||
}
|
||||
if _, ok := _c.mutation.StocktakeNo(); !ok {
|
||||
return &ValidationError{Name: "stocktake_no", err: errors.New(`ent: missing required field "Inventory.stocktake_no"`)}
|
||||
}
|
||||
if v, ok := _c.mutation.StocktakeNo(); ok {
|
||||
if err := inventory.StocktakeNoValidator(v); err != nil {
|
||||
return &ValidationError{Name: "stocktake_no", err: fmt.Errorf(`ent: validator failed for field "Inventory.stocktake_no": %w`, err)}
|
||||
}
|
||||
}
|
||||
if _, ok := _c.mutation.CreatedAt(); !ok {
|
||||
return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "Inventory.created_at"`)}
|
||||
}
|
||||
@@ -678,6 +704,10 @@ func (_c *InventoryCreate) createSpec() (*Inventory, *sqlgraph.CreateSpec) {
|
||||
_spec.SetField(inventory.FieldOutboundReason, field.TypeString, value)
|
||||
_node.OutboundReason = value
|
||||
}
|
||||
if value, ok := _c.mutation.StocktakeNo(); ok {
|
||||
_spec.SetField(inventory.FieldStocktakeNo, field.TypeString, value)
|
||||
_node.StocktakeNo = value
|
||||
}
|
||||
if value, ok := _c.mutation.Remark(); ok {
|
||||
_spec.SetField(inventory.FieldRemark, field.TypeString, value)
|
||||
_node.Remark = value
|
||||
@@ -1204,6 +1234,18 @@ func (u *InventoryUpsert) ClearOutboundReason() *InventoryUpsert {
|
||||
return u
|
||||
}
|
||||
|
||||
// SetStocktakeNo sets the "stocktake_no" field.
|
||||
func (u *InventoryUpsert) SetStocktakeNo(v string) *InventoryUpsert {
|
||||
u.Set(inventory.FieldStocktakeNo, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdateStocktakeNo sets the "stocktake_no" field to the value that was provided on create.
|
||||
func (u *InventoryUpsert) UpdateStocktakeNo() *InventoryUpsert {
|
||||
u.SetExcluded(inventory.FieldStocktakeNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetRemark sets the "remark" field.
|
||||
func (u *InventoryUpsert) SetRemark(v string) *InventoryUpsert {
|
||||
u.Set(inventory.FieldRemark, v)
|
||||
@@ -1837,6 +1879,20 @@ func (u *InventoryUpsertOne) ClearOutboundReason() *InventoryUpsertOne {
|
||||
})
|
||||
}
|
||||
|
||||
// SetStocktakeNo sets the "stocktake_no" field.
|
||||
func (u *InventoryUpsertOne) SetStocktakeNo(v string) *InventoryUpsertOne {
|
||||
return u.Update(func(s *InventoryUpsert) {
|
||||
s.SetStocktakeNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateStocktakeNo sets the "stocktake_no" field to the value that was provided on create.
|
||||
func (u *InventoryUpsertOne) UpdateStocktakeNo() *InventoryUpsertOne {
|
||||
return u.Update(func(s *InventoryUpsert) {
|
||||
s.UpdateStocktakeNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetRemark sets the "remark" field.
|
||||
func (u *InventoryUpsertOne) SetRemark(v string) *InventoryUpsertOne {
|
||||
return u.Update(func(s *InventoryUpsert) {
|
||||
@@ -2643,6 +2699,20 @@ func (u *InventoryUpsertBulk) ClearOutboundReason() *InventoryUpsertBulk {
|
||||
})
|
||||
}
|
||||
|
||||
// SetStocktakeNo sets the "stocktake_no" field.
|
||||
func (u *InventoryUpsertBulk) SetStocktakeNo(v string) *InventoryUpsertBulk {
|
||||
return u.Update(func(s *InventoryUpsert) {
|
||||
s.SetStocktakeNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateStocktakeNo sets the "stocktake_no" field to the value that was provided on create.
|
||||
func (u *InventoryUpsertBulk) UpdateStocktakeNo() *InventoryUpsertBulk {
|
||||
return u.Update(func(s *InventoryUpsert) {
|
||||
s.UpdateStocktakeNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetRemark sets the "remark" field.
|
||||
func (u *InventoryUpsertBulk) SetRemark(v string) *InventoryUpsertBulk {
|
||||
return u.Update(func(s *InventoryUpsert) {
|
||||
|
||||
Reference in New Issue
Block a user