feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -75,6 +75,66 @@ func (_u *ZoneUpdate) ClearDescription() *ZoneUpdate {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetShelfNo sets the "shelf_no" field.
|
||||
func (_u *ZoneUpdate) SetShelfNo(v string) *ZoneUpdate {
|
||||
_u.mutation.SetShelfNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableShelfNo sets the "shelf_no" field if the given value is not nil.
|
||||
func (_u *ZoneUpdate) SetNillableShelfNo(v *string) *ZoneUpdate {
|
||||
if v != nil {
|
||||
_u.SetShelfNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearShelfNo clears the value of the "shelf_no" field.
|
||||
func (_u *ZoneUpdate) ClearShelfNo() *ZoneUpdate {
|
||||
_u.mutation.ClearShelfNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetLayerNo sets the "layer_no" field.
|
||||
func (_u *ZoneUpdate) SetLayerNo(v string) *ZoneUpdate {
|
||||
_u.mutation.SetLayerNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableLayerNo sets the "layer_no" field if the given value is not nil.
|
||||
func (_u *ZoneUpdate) SetNillableLayerNo(v *string) *ZoneUpdate {
|
||||
if v != nil {
|
||||
_u.SetLayerNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearLayerNo clears the value of the "layer_no" field.
|
||||
func (_u *ZoneUpdate) ClearLayerNo() *ZoneUpdate {
|
||||
_u.mutation.ClearLayerNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetPositionNo sets the "position_no" field.
|
||||
func (_u *ZoneUpdate) SetPositionNo(v string) *ZoneUpdate {
|
||||
_u.mutation.SetPositionNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillablePositionNo sets the "position_no" field if the given value is not nil.
|
||||
func (_u *ZoneUpdate) SetNillablePositionNo(v *string) *ZoneUpdate {
|
||||
if v != nil {
|
||||
_u.SetPositionNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearPositionNo clears the value of the "position_no" field.
|
||||
func (_u *ZoneUpdate) ClearPositionNo() *ZoneUpdate {
|
||||
_u.mutation.ClearPositionNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetStatus sets the "status" field.
|
||||
func (_u *ZoneUpdate) SetStatus(v string) *ZoneUpdate {
|
||||
_u.mutation.SetStatus(v)
|
||||
@@ -190,6 +250,24 @@ func (_u *ZoneUpdate) sqlSave(ctx context.Context) (_node int, err error) {
|
||||
if _u.mutation.DescriptionCleared() {
|
||||
_spec.ClearField(zone.FieldDescription, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.ShelfNo(); ok {
|
||||
_spec.SetField(zone.FieldShelfNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.ShelfNoCleared() {
|
||||
_spec.ClearField(zone.FieldShelfNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.LayerNo(); ok {
|
||||
_spec.SetField(zone.FieldLayerNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.LayerNoCleared() {
|
||||
_spec.ClearField(zone.FieldLayerNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.PositionNo(); ok {
|
||||
_spec.SetField(zone.FieldPositionNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.PositionNoCleared() {
|
||||
_spec.ClearField(zone.FieldPositionNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.Status(); ok {
|
||||
_spec.SetField(zone.FieldStatus, field.TypeString, value)
|
||||
}
|
||||
@@ -276,6 +354,66 @@ func (_u *ZoneUpdateOne) ClearDescription() *ZoneUpdateOne {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetShelfNo sets the "shelf_no" field.
|
||||
func (_u *ZoneUpdateOne) SetShelfNo(v string) *ZoneUpdateOne {
|
||||
_u.mutation.SetShelfNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableShelfNo sets the "shelf_no" field if the given value is not nil.
|
||||
func (_u *ZoneUpdateOne) SetNillableShelfNo(v *string) *ZoneUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetShelfNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearShelfNo clears the value of the "shelf_no" field.
|
||||
func (_u *ZoneUpdateOne) ClearShelfNo() *ZoneUpdateOne {
|
||||
_u.mutation.ClearShelfNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetLayerNo sets the "layer_no" field.
|
||||
func (_u *ZoneUpdateOne) SetLayerNo(v string) *ZoneUpdateOne {
|
||||
_u.mutation.SetLayerNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableLayerNo sets the "layer_no" field if the given value is not nil.
|
||||
func (_u *ZoneUpdateOne) SetNillableLayerNo(v *string) *ZoneUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetLayerNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearLayerNo clears the value of the "layer_no" field.
|
||||
func (_u *ZoneUpdateOne) ClearLayerNo() *ZoneUpdateOne {
|
||||
_u.mutation.ClearLayerNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetPositionNo sets the "position_no" field.
|
||||
func (_u *ZoneUpdateOne) SetPositionNo(v string) *ZoneUpdateOne {
|
||||
_u.mutation.SetPositionNo(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillablePositionNo sets the "position_no" field if the given value is not nil.
|
||||
func (_u *ZoneUpdateOne) SetNillablePositionNo(v *string) *ZoneUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetPositionNo(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearPositionNo clears the value of the "position_no" field.
|
||||
func (_u *ZoneUpdateOne) ClearPositionNo() *ZoneUpdateOne {
|
||||
_u.mutation.ClearPositionNo()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetStatus sets the "status" field.
|
||||
func (_u *ZoneUpdateOne) SetStatus(v string) *ZoneUpdateOne {
|
||||
_u.mutation.SetStatus(v)
|
||||
@@ -421,6 +559,24 @@ func (_u *ZoneUpdateOne) sqlSave(ctx context.Context) (_node *Zone, err error) {
|
||||
if _u.mutation.DescriptionCleared() {
|
||||
_spec.ClearField(zone.FieldDescription, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.ShelfNo(); ok {
|
||||
_spec.SetField(zone.FieldShelfNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.ShelfNoCleared() {
|
||||
_spec.ClearField(zone.FieldShelfNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.LayerNo(); ok {
|
||||
_spec.SetField(zone.FieldLayerNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.LayerNoCleared() {
|
||||
_spec.ClearField(zone.FieldLayerNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.PositionNo(); ok {
|
||||
_spec.SetField(zone.FieldPositionNo, field.TypeString, value)
|
||||
}
|
||||
if _u.mutation.PositionNoCleared() {
|
||||
_spec.ClearField(zone.FieldPositionNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.Status(); ok {
|
||||
_spec.SetField(zone.FieldStatus, field.TypeString, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user