feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -47,6 +47,48 @@ func (_c *ZoneCreate) SetNillableDescription(v *string) *ZoneCreate {
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetShelfNo sets the "shelf_no" field.
|
||||
func (_c *ZoneCreate) SetShelfNo(v string) *ZoneCreate {
|
||||
_c.mutation.SetShelfNo(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableShelfNo sets the "shelf_no" field if the given value is not nil.
|
||||
func (_c *ZoneCreate) SetNillableShelfNo(v *string) *ZoneCreate {
|
||||
if v != nil {
|
||||
_c.SetShelfNo(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetLayerNo sets the "layer_no" field.
|
||||
func (_c *ZoneCreate) SetLayerNo(v string) *ZoneCreate {
|
||||
_c.mutation.SetLayerNo(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableLayerNo sets the "layer_no" field if the given value is not nil.
|
||||
func (_c *ZoneCreate) SetNillableLayerNo(v *string) *ZoneCreate {
|
||||
if v != nil {
|
||||
_c.SetLayerNo(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetPositionNo sets the "position_no" field.
|
||||
func (_c *ZoneCreate) SetPositionNo(v string) *ZoneCreate {
|
||||
_c.mutation.SetPositionNo(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillablePositionNo sets the "position_no" field if the given value is not nil.
|
||||
func (_c *ZoneCreate) SetNillablePositionNo(v *string) *ZoneCreate {
|
||||
if v != nil {
|
||||
_c.SetPositionNo(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetStatus sets the "status" field.
|
||||
func (_c *ZoneCreate) SetStatus(v string) *ZoneCreate {
|
||||
_c.mutation.SetStatus(v)
|
||||
@@ -191,6 +233,18 @@ func (_c *ZoneCreate) createSpec() (*Zone, *sqlgraph.CreateSpec) {
|
||||
_spec.SetField(zone.FieldDescription, field.TypeString, value)
|
||||
_node.Description = value
|
||||
}
|
||||
if value, ok := _c.mutation.ShelfNo(); ok {
|
||||
_spec.SetField(zone.FieldShelfNo, field.TypeString, value)
|
||||
_node.ShelfNo = value
|
||||
}
|
||||
if value, ok := _c.mutation.LayerNo(); ok {
|
||||
_spec.SetField(zone.FieldLayerNo, field.TypeString, value)
|
||||
_node.LayerNo = value
|
||||
}
|
||||
if value, ok := _c.mutation.PositionNo(); ok {
|
||||
_spec.SetField(zone.FieldPositionNo, field.TypeString, value)
|
||||
_node.PositionNo = value
|
||||
}
|
||||
if value, ok := _c.mutation.Status(); ok {
|
||||
_spec.SetField(zone.FieldStatus, field.TypeString, value)
|
||||
_node.Status = value
|
||||
@@ -297,6 +351,60 @@ func (u *ZoneUpsert) ClearDescription() *ZoneUpsert {
|
||||
return u
|
||||
}
|
||||
|
||||
// SetShelfNo sets the "shelf_no" field.
|
||||
func (u *ZoneUpsert) SetShelfNo(v string) *ZoneUpsert {
|
||||
u.Set(zone.FieldShelfNo, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdateShelfNo sets the "shelf_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsert) UpdateShelfNo() *ZoneUpsert {
|
||||
u.SetExcluded(zone.FieldShelfNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearShelfNo clears the value of the "shelf_no" field.
|
||||
func (u *ZoneUpsert) ClearShelfNo() *ZoneUpsert {
|
||||
u.SetNull(zone.FieldShelfNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetLayerNo sets the "layer_no" field.
|
||||
func (u *ZoneUpsert) SetLayerNo(v string) *ZoneUpsert {
|
||||
u.Set(zone.FieldLayerNo, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdateLayerNo sets the "layer_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsert) UpdateLayerNo() *ZoneUpsert {
|
||||
u.SetExcluded(zone.FieldLayerNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearLayerNo clears the value of the "layer_no" field.
|
||||
func (u *ZoneUpsert) ClearLayerNo() *ZoneUpsert {
|
||||
u.SetNull(zone.FieldLayerNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetPositionNo sets the "position_no" field.
|
||||
func (u *ZoneUpsert) SetPositionNo(v string) *ZoneUpsert {
|
||||
u.Set(zone.FieldPositionNo, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdatePositionNo sets the "position_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsert) UpdatePositionNo() *ZoneUpsert {
|
||||
u.SetExcluded(zone.FieldPositionNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearPositionNo clears the value of the "position_no" field.
|
||||
func (u *ZoneUpsert) ClearPositionNo() *ZoneUpsert {
|
||||
u.SetNull(zone.FieldPositionNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetStatus sets the "status" field.
|
||||
func (u *ZoneUpsert) SetStatus(v string) *ZoneUpsert {
|
||||
u.Set(zone.FieldStatus, v)
|
||||
@@ -440,6 +548,69 @@ func (u *ZoneUpsertOne) ClearDescription() *ZoneUpsertOne {
|
||||
})
|
||||
}
|
||||
|
||||
// SetShelfNo sets the "shelf_no" field.
|
||||
func (u *ZoneUpsertOne) SetShelfNo(v string) *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.SetShelfNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateShelfNo sets the "shelf_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsertOne) UpdateShelfNo() *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.UpdateShelfNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearShelfNo clears the value of the "shelf_no" field.
|
||||
func (u *ZoneUpsertOne) ClearShelfNo() *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.ClearShelfNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetLayerNo sets the "layer_no" field.
|
||||
func (u *ZoneUpsertOne) SetLayerNo(v string) *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.SetLayerNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateLayerNo sets the "layer_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsertOne) UpdateLayerNo() *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.UpdateLayerNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearLayerNo clears the value of the "layer_no" field.
|
||||
func (u *ZoneUpsertOne) ClearLayerNo() *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.ClearLayerNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetPositionNo sets the "position_no" field.
|
||||
func (u *ZoneUpsertOne) SetPositionNo(v string) *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.SetPositionNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdatePositionNo sets the "position_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsertOne) UpdatePositionNo() *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.UpdatePositionNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearPositionNo clears the value of the "position_no" field.
|
||||
func (u *ZoneUpsertOne) ClearPositionNo() *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.ClearPositionNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetStatus sets the "status" field.
|
||||
func (u *ZoneUpsertOne) SetStatus(v string) *ZoneUpsertOne {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
@@ -756,6 +927,69 @@ func (u *ZoneUpsertBulk) ClearDescription() *ZoneUpsertBulk {
|
||||
})
|
||||
}
|
||||
|
||||
// SetShelfNo sets the "shelf_no" field.
|
||||
func (u *ZoneUpsertBulk) SetShelfNo(v string) *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.SetShelfNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateShelfNo sets the "shelf_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsertBulk) UpdateShelfNo() *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.UpdateShelfNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearShelfNo clears the value of the "shelf_no" field.
|
||||
func (u *ZoneUpsertBulk) ClearShelfNo() *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.ClearShelfNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetLayerNo sets the "layer_no" field.
|
||||
func (u *ZoneUpsertBulk) SetLayerNo(v string) *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.SetLayerNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateLayerNo sets the "layer_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsertBulk) UpdateLayerNo() *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.UpdateLayerNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearLayerNo clears the value of the "layer_no" field.
|
||||
func (u *ZoneUpsertBulk) ClearLayerNo() *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.ClearLayerNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetPositionNo sets the "position_no" field.
|
||||
func (u *ZoneUpsertBulk) SetPositionNo(v string) *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.SetPositionNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdatePositionNo sets the "position_no" field to the value that was provided on create.
|
||||
func (u *ZoneUpsertBulk) UpdatePositionNo() *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.UpdatePositionNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearPositionNo clears the value of the "position_no" field.
|
||||
func (u *ZoneUpsertBulk) ClearPositionNo() *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
s.ClearPositionNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetStatus sets the "status" field.
|
||||
func (u *ZoneUpsertBulk) SetStatus(v string) *ZoneUpsertBulk {
|
||||
return u.Update(func(s *ZoneUpsert) {
|
||||
|
||||
Reference in New Issue
Block a user