feat: 完成客户第12条需求+多系统改造
1. 新增预警表添加工单号字段,支持按工单号检索预警 2. 添加工单过滤在制品/绩效报表/预警中心查询 3. 补全WMS台账字段口径与权限配置 4. 修复备料单与数量不符处理流程 5. 新增配送进度/库位联动/自动出库功能 6. 修复AGV配送状态更新逻辑 7. 优化退料与库存管理细节
This commit is contained in:
@@ -39,6 +39,22 @@ const (
|
||||
FieldProcessCode = "process_code"
|
||||
// FieldSentQty holds the string denoting the sentqty field in the database.
|
||||
FieldSentQty = "sent_qty"
|
||||
// FieldReceivedQty holds the string denoting the receivedqty field in the database.
|
||||
FieldReceivedQty = "received_qty"
|
||||
// FieldReceivedAt holds the string denoting the receivedat field in the database.
|
||||
FieldReceivedAt = "received_at"
|
||||
// FieldReceiveBy holds the string denoting the receiveby field in the database.
|
||||
FieldReceiveBy = "receive_by"
|
||||
// FieldSource holds the string denoting the source field in the database.
|
||||
FieldSource = "source"
|
||||
// FieldOverQty holds the string denoting the overqty field in the database.
|
||||
FieldOverQty = "over_qty"
|
||||
// FieldOverReason holds the string denoting the overreason field in the database.
|
||||
FieldOverReason = "over_reason"
|
||||
// FieldRefReportNo holds the string denoting the refreportno field in the database.
|
||||
FieldRefReportNo = "ref_report_no"
|
||||
// FieldNeedAgv holds the string denoting the needagv field in the database.
|
||||
FieldNeedAgv = "need_agv"
|
||||
// FieldBatchNo holds the string denoting the batchno field in the database.
|
||||
FieldBatchNo = "batch_no"
|
||||
// FieldOperator holds the string denoting the operator field in the database.
|
||||
@@ -67,6 +83,14 @@ var Columns = []string{
|
||||
FieldStationNo,
|
||||
FieldProcessCode,
|
||||
FieldSentQty,
|
||||
FieldReceivedQty,
|
||||
FieldReceivedAt,
|
||||
FieldReceiveBy,
|
||||
FieldSource,
|
||||
FieldOverQty,
|
||||
FieldOverReason,
|
||||
FieldRefReportNo,
|
||||
FieldNeedAgv,
|
||||
FieldBatchNo,
|
||||
FieldOperator,
|
||||
FieldCreatedAt,
|
||||
@@ -120,6 +144,30 @@ var (
|
||||
DefaultProcessCode int
|
||||
// DefaultSentQty holds the default value on creation for the "sentQty" field.
|
||||
DefaultSentQty float64
|
||||
// DefaultReceivedQty holds the default value on creation for the "receivedQty" field.
|
||||
DefaultReceivedQty float64
|
||||
// DefaultReceivedAt holds the default value on creation for the "receivedAt" field.
|
||||
DefaultReceivedAt int64
|
||||
// DefaultReceiveBy holds the default value on creation for the "receiveBy" field.
|
||||
DefaultReceiveBy string
|
||||
// ReceiveByValidator is a validator for the "receiveBy" field. It is called by the builders before save.
|
||||
ReceiveByValidator func(string) error
|
||||
// DefaultSource holds the default value on creation for the "source" field.
|
||||
DefaultSource string
|
||||
// SourceValidator is a validator for the "source" field. It is called by the builders before save.
|
||||
SourceValidator func(string) error
|
||||
// DefaultOverQty holds the default value on creation for the "overQty" field.
|
||||
DefaultOverQty float64
|
||||
// DefaultOverReason holds the default value on creation for the "overReason" field.
|
||||
DefaultOverReason string
|
||||
// OverReasonValidator is a validator for the "overReason" field. It is called by the builders before save.
|
||||
OverReasonValidator func(string) error
|
||||
// DefaultRefReportNo holds the default value on creation for the "refReportNo" field.
|
||||
DefaultRefReportNo string
|
||||
// RefReportNoValidator is a validator for the "refReportNo" field. It is called by the builders before save.
|
||||
RefReportNoValidator func(string) error
|
||||
// DefaultNeedAgv holds the default value on creation for the "needAgv" field.
|
||||
DefaultNeedAgv bool
|
||||
// DefaultBatchNo holds the default value on creation for the "batchNo" field.
|
||||
DefaultBatchNo string
|
||||
// BatchNoValidator is a validator for the "batchNo" field. It is called by the builders before save.
|
||||
@@ -211,6 +259,46 @@ func BySentQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSentQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReceivedQty orders the results by the receivedQty field.
|
||||
func ByReceivedQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReceivedQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReceivedAt orders the results by the receivedAt field.
|
||||
func ByReceivedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReceivedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReceiveBy orders the results by the receiveBy field.
|
||||
func ByReceiveBy(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReceiveBy, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySource orders the results by the source field.
|
||||
func BySource(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSource, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOverQty orders the results by the overQty field.
|
||||
func ByOverQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOverQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByOverReason orders the results by the overReason field.
|
||||
func ByOverReason(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldOverReason, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRefReportNo orders the results by the refReportNo field.
|
||||
func ByRefReportNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRefReportNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByNeedAgv orders the results by the needAgv field.
|
||||
func ByNeedAgv(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldNeedAgv, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByBatchNo orders the results by the batchNo field.
|
||||
func ByBatchNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldBatchNo, opts...).ToFunc()
|
||||
|
||||
@@ -119,6 +119,46 @@ func SentQty(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQty applies equality check predicate on the "receivedQty" field. It's identical to ReceivedQtyEQ.
|
||||
func ReceivedQty(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedAt applies equality check predicate on the "receivedAt" field. It's identical to ReceivedAtEQ.
|
||||
func ReceivedAt(v int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceivedAt, v))
|
||||
}
|
||||
|
||||
// ReceiveBy applies equality check predicate on the "receiveBy" field. It's identical to ReceiveByEQ.
|
||||
func ReceiveBy(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
|
||||
func Source(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// OverQty applies equality check predicate on the "overQty" field. It's identical to OverQtyEQ.
|
||||
func OverQty(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldOverQty, v))
|
||||
}
|
||||
|
||||
// OverReason applies equality check predicate on the "overReason" field. It's identical to OverReasonEQ.
|
||||
func OverReason(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// RefReportNo applies equality check predicate on the "refReportNo" field. It's identical to RefReportNoEQ.
|
||||
func RefReportNo(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// NeedAgv applies equality check predicate on the "needAgv" field. It's identical to NeedAgvEQ.
|
||||
func NeedAgv(v bool) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldNeedAgv, v))
|
||||
}
|
||||
|
||||
// BatchNo applies equality check predicate on the "batchNo" field. It's identical to BatchNoEQ.
|
||||
func BatchNo(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldBatchNo, v))
|
||||
@@ -884,6 +924,396 @@ func SentQtyLTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyEQ applies the EQ predicate on the "receivedQty" field.
|
||||
func ReceivedQtyEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyNEQ applies the NEQ predicate on the "receivedQty" field.
|
||||
func ReceivedQtyNEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyIn applies the In predicate on the "receivedQty" field.
|
||||
func ReceivedQtyIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldReceivedQty, vs...))
|
||||
}
|
||||
|
||||
// ReceivedQtyNotIn applies the NotIn predicate on the "receivedQty" field.
|
||||
func ReceivedQtyNotIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldReceivedQty, vs...))
|
||||
}
|
||||
|
||||
// ReceivedQtyGT applies the GT predicate on the "receivedQty" field.
|
||||
func ReceivedQtyGT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyGTE applies the GTE predicate on the "receivedQty" field.
|
||||
func ReceivedQtyGTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyLT applies the LT predicate on the "receivedQty" field.
|
||||
func ReceivedQtyLT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedQtyLTE applies the LTE predicate on the "receivedQty" field.
|
||||
func ReceivedQtyLTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldReceivedQty, v))
|
||||
}
|
||||
|
||||
// ReceivedAtEQ applies the EQ predicate on the "receivedAt" field.
|
||||
func ReceivedAtEQ(v int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceivedAt, v))
|
||||
}
|
||||
|
||||
// ReceivedAtNEQ applies the NEQ predicate on the "receivedAt" field.
|
||||
func ReceivedAtNEQ(v int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldReceivedAt, v))
|
||||
}
|
||||
|
||||
// ReceivedAtIn applies the In predicate on the "receivedAt" field.
|
||||
func ReceivedAtIn(vs ...int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldReceivedAt, vs...))
|
||||
}
|
||||
|
||||
// ReceivedAtNotIn applies the NotIn predicate on the "receivedAt" field.
|
||||
func ReceivedAtNotIn(vs ...int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldReceivedAt, vs...))
|
||||
}
|
||||
|
||||
// ReceivedAtGT applies the GT predicate on the "receivedAt" field.
|
||||
func ReceivedAtGT(v int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldReceivedAt, v))
|
||||
}
|
||||
|
||||
// ReceivedAtGTE applies the GTE predicate on the "receivedAt" field.
|
||||
func ReceivedAtGTE(v int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldReceivedAt, v))
|
||||
}
|
||||
|
||||
// ReceivedAtLT applies the LT predicate on the "receivedAt" field.
|
||||
func ReceivedAtLT(v int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldReceivedAt, v))
|
||||
}
|
||||
|
||||
// ReceivedAtLTE applies the LTE predicate on the "receivedAt" field.
|
||||
func ReceivedAtLTE(v int64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldReceivedAt, v))
|
||||
}
|
||||
|
||||
// ReceiveByEQ applies the EQ predicate on the "receiveBy" field.
|
||||
func ReceiveByEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByNEQ applies the NEQ predicate on the "receiveBy" field.
|
||||
func ReceiveByNEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByIn applies the In predicate on the "receiveBy" field.
|
||||
func ReceiveByIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldReceiveBy, vs...))
|
||||
}
|
||||
|
||||
// ReceiveByNotIn applies the NotIn predicate on the "receiveBy" field.
|
||||
func ReceiveByNotIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldReceiveBy, vs...))
|
||||
}
|
||||
|
||||
// ReceiveByGT applies the GT predicate on the "receiveBy" field.
|
||||
func ReceiveByGT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByGTE applies the GTE predicate on the "receiveBy" field.
|
||||
func ReceiveByGTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByLT applies the LT predicate on the "receiveBy" field.
|
||||
func ReceiveByLT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByLTE applies the LTE predicate on the "receiveBy" field.
|
||||
func ReceiveByLTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByContains applies the Contains predicate on the "receiveBy" field.
|
||||
func ReceiveByContains(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContains(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByHasPrefix applies the HasPrefix predicate on the "receiveBy" field.
|
||||
func ReceiveByHasPrefix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasPrefix(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByHasSuffix applies the HasSuffix predicate on the "receiveBy" field.
|
||||
func ReceiveByHasSuffix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasSuffix(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByEqualFold applies the EqualFold predicate on the "receiveBy" field.
|
||||
func ReceiveByEqualFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEqualFold(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// ReceiveByContainsFold applies the ContainsFold predicate on the "receiveBy" field.
|
||||
func ReceiveByContainsFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContainsFold(FieldReceiveBy, v))
|
||||
}
|
||||
|
||||
// SourceEQ applies the EQ predicate on the "source" field.
|
||||
func SourceEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceNEQ applies the NEQ predicate on the "source" field.
|
||||
func SourceNEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceIn applies the In predicate on the "source" field.
|
||||
func SourceIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldSource, vs...))
|
||||
}
|
||||
|
||||
// SourceNotIn applies the NotIn predicate on the "source" field.
|
||||
func SourceNotIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldSource, vs...))
|
||||
}
|
||||
|
||||
// SourceGT applies the GT predicate on the "source" field.
|
||||
func SourceGT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceGTE applies the GTE predicate on the "source" field.
|
||||
func SourceGTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceLT applies the LT predicate on the "source" field.
|
||||
func SourceLT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceLTE applies the LTE predicate on the "source" field.
|
||||
func SourceLTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceContains applies the Contains predicate on the "source" field.
|
||||
func SourceContains(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContains(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceHasPrefix applies the HasPrefix predicate on the "source" field.
|
||||
func SourceHasPrefix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasPrefix(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceHasSuffix applies the HasSuffix predicate on the "source" field.
|
||||
func SourceHasSuffix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasSuffix(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceEqualFold applies the EqualFold predicate on the "source" field.
|
||||
func SourceEqualFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEqualFold(FieldSource, v))
|
||||
}
|
||||
|
||||
// SourceContainsFold applies the ContainsFold predicate on the "source" field.
|
||||
func SourceContainsFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContainsFold(FieldSource, v))
|
||||
}
|
||||
|
||||
// OverQtyEQ applies the EQ predicate on the "overQty" field.
|
||||
func OverQtyEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldOverQty, v))
|
||||
}
|
||||
|
||||
// OverQtyNEQ applies the NEQ predicate on the "overQty" field.
|
||||
func OverQtyNEQ(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldOverQty, v))
|
||||
}
|
||||
|
||||
// OverQtyIn applies the In predicate on the "overQty" field.
|
||||
func OverQtyIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldOverQty, vs...))
|
||||
}
|
||||
|
||||
// OverQtyNotIn applies the NotIn predicate on the "overQty" field.
|
||||
func OverQtyNotIn(vs ...float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldOverQty, vs...))
|
||||
}
|
||||
|
||||
// OverQtyGT applies the GT predicate on the "overQty" field.
|
||||
func OverQtyGT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldOverQty, v))
|
||||
}
|
||||
|
||||
// OverQtyGTE applies the GTE predicate on the "overQty" field.
|
||||
func OverQtyGTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldOverQty, v))
|
||||
}
|
||||
|
||||
// OverQtyLT applies the LT predicate on the "overQty" field.
|
||||
func OverQtyLT(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldOverQty, v))
|
||||
}
|
||||
|
||||
// OverQtyLTE applies the LTE predicate on the "overQty" field.
|
||||
func OverQtyLTE(v float64) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldOverQty, v))
|
||||
}
|
||||
|
||||
// OverReasonEQ applies the EQ predicate on the "overReason" field.
|
||||
func OverReasonEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonNEQ applies the NEQ predicate on the "overReason" field.
|
||||
func OverReasonNEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonIn applies the In predicate on the "overReason" field.
|
||||
func OverReasonIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldOverReason, vs...))
|
||||
}
|
||||
|
||||
// OverReasonNotIn applies the NotIn predicate on the "overReason" field.
|
||||
func OverReasonNotIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldOverReason, vs...))
|
||||
}
|
||||
|
||||
// OverReasonGT applies the GT predicate on the "overReason" field.
|
||||
func OverReasonGT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonGTE applies the GTE predicate on the "overReason" field.
|
||||
func OverReasonGTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonLT applies the LT predicate on the "overReason" field.
|
||||
func OverReasonLT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonLTE applies the LTE predicate on the "overReason" field.
|
||||
func OverReasonLTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonContains applies the Contains predicate on the "overReason" field.
|
||||
func OverReasonContains(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContains(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonHasPrefix applies the HasPrefix predicate on the "overReason" field.
|
||||
func OverReasonHasPrefix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasPrefix(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonHasSuffix applies the HasSuffix predicate on the "overReason" field.
|
||||
func OverReasonHasSuffix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasSuffix(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonEqualFold applies the EqualFold predicate on the "overReason" field.
|
||||
func OverReasonEqualFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEqualFold(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// OverReasonContainsFold applies the ContainsFold predicate on the "overReason" field.
|
||||
func OverReasonContainsFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContainsFold(FieldOverReason, v))
|
||||
}
|
||||
|
||||
// RefReportNoEQ applies the EQ predicate on the "refReportNo" field.
|
||||
func RefReportNoEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoNEQ applies the NEQ predicate on the "refReportNo" field.
|
||||
func RefReportNoNEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoIn applies the In predicate on the "refReportNo" field.
|
||||
func RefReportNoIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldIn(FieldRefReportNo, vs...))
|
||||
}
|
||||
|
||||
// RefReportNoNotIn applies the NotIn predicate on the "refReportNo" field.
|
||||
func RefReportNoNotIn(vs ...string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNotIn(FieldRefReportNo, vs...))
|
||||
}
|
||||
|
||||
// RefReportNoGT applies the GT predicate on the "refReportNo" field.
|
||||
func RefReportNoGT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGT(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoGTE applies the GTE predicate on the "refReportNo" field.
|
||||
func RefReportNoGTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldGTE(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoLT applies the LT predicate on the "refReportNo" field.
|
||||
func RefReportNoLT(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLT(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoLTE applies the LTE predicate on the "refReportNo" field.
|
||||
func RefReportNoLTE(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldLTE(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoContains applies the Contains predicate on the "refReportNo" field.
|
||||
func RefReportNoContains(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContains(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoHasPrefix applies the HasPrefix predicate on the "refReportNo" field.
|
||||
func RefReportNoHasPrefix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasPrefix(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoHasSuffix applies the HasSuffix predicate on the "refReportNo" field.
|
||||
func RefReportNoHasSuffix(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldHasSuffix(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoEqualFold applies the EqualFold predicate on the "refReportNo" field.
|
||||
func RefReportNoEqualFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEqualFold(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// RefReportNoContainsFold applies the ContainsFold predicate on the "refReportNo" field.
|
||||
func RefReportNoContainsFold(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldContainsFold(FieldRefReportNo, v))
|
||||
}
|
||||
|
||||
// NeedAgvEQ applies the EQ predicate on the "needAgv" field.
|
||||
func NeedAgvEQ(v bool) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldNeedAgv, v))
|
||||
}
|
||||
|
||||
// NeedAgvNEQ applies the NEQ predicate on the "needAgv" field.
|
||||
func NeedAgvNEQ(v bool) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldNEQ(FieldNeedAgv, v))
|
||||
}
|
||||
|
||||
// BatchNoEQ applies the EQ predicate on the "batchNo" field.
|
||||
func BatchNoEQ(v string) predicate.MaterialRequest {
|
||||
return predicate.MaterialRequest(sql.FieldEQ(FieldBatchNo, v))
|
||||
|
||||
Reference in New Issue
Block a user