feat: 新增 AgvPoint 点位表及客户端,支持点位编码与接驳台绑定
This commit is contained in:
@@ -572,6 +572,75 @@ func (_u *OutboundOrderUpdate) ClearProductWorkNo() *OutboundOrderUpdate {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoided sets the "voided" field.
|
||||
func (_u *OutboundOrderUpdate) SetVoided(v bool) *OutboundOrderUpdate {
|
||||
_u.mutation.SetVoided(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoided sets the "voided" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdate) SetNillableVoided(v *bool) *OutboundOrderUpdate {
|
||||
if v != nil {
|
||||
_u.SetVoided(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoidReason sets the "void_reason" field.
|
||||
func (_u *OutboundOrderUpdate) SetVoidReason(v string) *OutboundOrderUpdate {
|
||||
_u.mutation.SetVoidReason(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoidReason sets the "void_reason" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdate) SetNillableVoidReason(v *string) *OutboundOrderUpdate {
|
||||
if v != nil {
|
||||
_u.SetVoidReason(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoidedBy sets the "voided_by" field.
|
||||
func (_u *OutboundOrderUpdate) SetVoidedBy(v string) *OutboundOrderUpdate {
|
||||
_u.mutation.SetVoidedBy(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoidedBy sets the "voided_by" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdate) SetNillableVoidedBy(v *string) *OutboundOrderUpdate {
|
||||
if v != nil {
|
||||
_u.SetVoidedBy(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoidedAt sets the "voided_at" field.
|
||||
func (_u *OutboundOrderUpdate) SetVoidedAt(v int64) *OutboundOrderUpdate {
|
||||
_u.mutation.ResetVoidedAt()
|
||||
_u.mutation.SetVoidedAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdate) SetNillableVoidedAt(v *int64) *OutboundOrderUpdate {
|
||||
if v != nil {
|
||||
_u.SetVoidedAt(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// AddVoidedAt adds value to the "voided_at" field.
|
||||
func (_u *OutboundOrderUpdate) AddVoidedAt(v int64) *OutboundOrderUpdate {
|
||||
_u.mutation.AddVoidedAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearVoidedAt clears the value of the "voided_at" field.
|
||||
func (_u *OutboundOrderUpdate) ClearVoidedAt() *OutboundOrderUpdate {
|
||||
_u.mutation.ClearVoidedAt()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (_u *OutboundOrderUpdate) SetCreatedAt(v int64) *OutboundOrderUpdate {
|
||||
_u.mutation.ResetCreatedAt()
|
||||
@@ -793,6 +862,24 @@ func (_u *OutboundOrderUpdate) sqlSave(ctx context.Context) (_node int, err erro
|
||||
if _u.mutation.ProductWorkNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldProductWorkNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.Voided(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoided, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.VoidReason(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoidReason, field.TypeString, value)
|
||||
}
|
||||
if value, ok := _u.mutation.VoidedBy(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoidedBy, field.TypeString, value)
|
||||
}
|
||||
if value, ok := _u.mutation.VoidedAt(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoidedAt, field.TypeInt64, value)
|
||||
}
|
||||
if value, ok := _u.mutation.AddedVoidedAt(); ok {
|
||||
_spec.AddField(outboundorder.FieldVoidedAt, field.TypeInt64, value)
|
||||
}
|
||||
if _u.mutation.VoidedAtCleared() {
|
||||
_spec.ClearField(outboundorder.FieldVoidedAt, field.TypeInt64)
|
||||
}
|
||||
if value, ok := _u.mutation.CreatedAt(); ok {
|
||||
_spec.SetField(outboundorder.FieldCreatedAt, field.TypeInt64, value)
|
||||
}
|
||||
@@ -1364,6 +1451,75 @@ func (_u *OutboundOrderUpdateOne) ClearProductWorkNo() *OutboundOrderUpdateOne {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoided sets the "voided" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetVoided(v bool) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetVoided(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoided sets the "voided" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdateOne) SetNillableVoided(v *bool) *OutboundOrderUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetVoided(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoidReason sets the "void_reason" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetVoidReason(v string) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetVoidReason(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoidReason sets the "void_reason" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdateOne) SetNillableVoidReason(v *string) *OutboundOrderUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetVoidReason(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoidedBy sets the "voided_by" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetVoidedBy(v string) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetVoidedBy(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoidedBy sets the "voided_by" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdateOne) SetNillableVoidedBy(v *string) *OutboundOrderUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetVoidedBy(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetVoidedAt sets the "voided_at" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetVoidedAt(v int64) *OutboundOrderUpdateOne {
|
||||
_u.mutation.ResetVoidedAt()
|
||||
_u.mutation.SetVoidedAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
|
||||
func (_u *OutboundOrderUpdateOne) SetNillableVoidedAt(v *int64) *OutboundOrderUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetVoidedAt(*v)
|
||||
}
|
||||
return _u
|
||||
}
|
||||
|
||||
// AddVoidedAt adds value to the "voided_at" field.
|
||||
func (_u *OutboundOrderUpdateOne) AddVoidedAt(v int64) *OutboundOrderUpdateOne {
|
||||
_u.mutation.AddVoidedAt(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearVoidedAt clears the value of the "voided_at" field.
|
||||
func (_u *OutboundOrderUpdateOne) ClearVoidedAt() *OutboundOrderUpdateOne {
|
||||
_u.mutation.ClearVoidedAt()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetCreatedAt(v int64) *OutboundOrderUpdateOne {
|
||||
_u.mutation.ResetCreatedAt()
|
||||
@@ -1615,6 +1771,24 @@ func (_u *OutboundOrderUpdateOne) sqlSave(ctx context.Context) (_node *OutboundO
|
||||
if _u.mutation.ProductWorkNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldProductWorkNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.Voided(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoided, field.TypeBool, value)
|
||||
}
|
||||
if value, ok := _u.mutation.VoidReason(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoidReason, field.TypeString, value)
|
||||
}
|
||||
if value, ok := _u.mutation.VoidedBy(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoidedBy, field.TypeString, value)
|
||||
}
|
||||
if value, ok := _u.mutation.VoidedAt(); ok {
|
||||
_spec.SetField(outboundorder.FieldVoidedAt, field.TypeInt64, value)
|
||||
}
|
||||
if value, ok := _u.mutation.AddedVoidedAt(); ok {
|
||||
_spec.AddField(outboundorder.FieldVoidedAt, field.TypeInt64, value)
|
||||
}
|
||||
if _u.mutation.VoidedAtCleared() {
|
||||
_spec.ClearField(outboundorder.FieldVoidedAt, field.TypeInt64)
|
||||
}
|
||||
if value, ok := _u.mutation.CreatedAt(); ok {
|
||||
_spec.SetField(outboundorder.FieldCreatedAt, field.TypeInt64, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user