feat: 大屏多订单改为同屏并列展示,物料申请新增跨工位借料来源并移除工单完成日期
This commit is contained in:
@@ -520,6 +520,18 @@ func (_u *OutboundOrderUpdate) ClearContractNo() *OutboundOrderUpdate {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetBorrowFrom sets the "borrowFrom" field.
|
||||
func (_u *OutboundOrderUpdate) SetBorrowFrom(v map[string]int) *OutboundOrderUpdate {
|
||||
_u.mutation.SetBorrowFrom(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearBorrowFrom clears the value of the "borrowFrom" field.
|
||||
func (_u *OutboundOrderUpdate) ClearBorrowFrom() *OutboundOrderUpdate {
|
||||
_u.mutation.ClearBorrowFrom()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetInspectionNo sets the "inspection_no" field.
|
||||
func (_u *OutboundOrderUpdate) SetInspectionNo(v string) *OutboundOrderUpdate {
|
||||
_u.mutation.SetInspectionNo(v)
|
||||
@@ -763,6 +775,12 @@ func (_u *OutboundOrderUpdate) sqlSave(ctx context.Context) (_node int, err erro
|
||||
if _u.mutation.ContractNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldContractNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.BorrowFrom(); ok {
|
||||
_spec.SetField(outboundorder.FieldBorrowFrom, field.TypeJSON, value)
|
||||
}
|
||||
if _u.mutation.BorrowFromCleared() {
|
||||
_spec.ClearField(outboundorder.FieldBorrowFrom, field.TypeJSON)
|
||||
}
|
||||
if value, ok := _u.mutation.InspectionNo(); ok {
|
||||
_spec.SetField(outboundorder.FieldInspectionNo, field.TypeString, value)
|
||||
}
|
||||
@@ -1294,6 +1312,18 @@ func (_u *OutboundOrderUpdateOne) ClearContractNo() *OutboundOrderUpdateOne {
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetBorrowFrom sets the "borrowFrom" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetBorrowFrom(v map[string]int) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetBorrowFrom(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// ClearBorrowFrom clears the value of the "borrowFrom" field.
|
||||
func (_u *OutboundOrderUpdateOne) ClearBorrowFrom() *OutboundOrderUpdateOne {
|
||||
_u.mutation.ClearBorrowFrom()
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetInspectionNo sets the "inspection_no" field.
|
||||
func (_u *OutboundOrderUpdateOne) SetInspectionNo(v string) *OutboundOrderUpdateOne {
|
||||
_u.mutation.SetInspectionNo(v)
|
||||
@@ -1567,6 +1597,12 @@ func (_u *OutboundOrderUpdateOne) sqlSave(ctx context.Context) (_node *OutboundO
|
||||
if _u.mutation.ContractNoCleared() {
|
||||
_spec.ClearField(outboundorder.FieldContractNo, field.TypeString)
|
||||
}
|
||||
if value, ok := _u.mutation.BorrowFrom(); ok {
|
||||
_spec.SetField(outboundorder.FieldBorrowFrom, field.TypeJSON, value)
|
||||
}
|
||||
if _u.mutation.BorrowFromCleared() {
|
||||
_spec.ClearField(outboundorder.FieldBorrowFrom, field.TypeJSON)
|
||||
}
|
||||
if value, ok := _u.mutation.InspectionNo(); ok {
|
||||
_spec.SetField(outboundorder.FieldInspectionNo, field.TypeString, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user