feat: 多系统新增扫码中间件与 AGV 对接,优化拧紧与退库流程
新增扫码中间件支持网络型扫码枪键盘注入,AGV 对接从 WMS 迁至 MES 统一管理;新增拧紧不合格人工处置与 PLC 对账机制,优化退库单关联与工位终端功能,同时清理旧 AGV 任务表,完善数据库与配置项。
This commit is contained in:
@@ -0,0 +1,182 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package callpool
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the callpool type in the database.
|
||||
Label = "call_pool"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldStationNo holds the string denoting the stationno field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldMaterialCode holds the string denoting the materialcode field in the database.
|
||||
FieldMaterialCode = "material_code"
|
||||
// FieldMaterialName holds the string denoting the materialname field in the database.
|
||||
FieldMaterialName = "material_name"
|
||||
// FieldUnit holds the string denoting the unit field in the database.
|
||||
FieldUnit = "unit"
|
||||
// FieldSnMode holds the string denoting the snmode field in the database.
|
||||
FieldSnMode = "sn_mode"
|
||||
// FieldReqQty holds the string denoting the reqqty field in the database.
|
||||
FieldReqQty = "req_qty"
|
||||
// FieldAdjQty holds the string denoting the adjqty field in the database.
|
||||
FieldAdjQty = "adj_qty"
|
||||
// FieldSentQty holds the string denoting the sentqty field in the database.
|
||||
FieldSentQty = "sent_qty"
|
||||
// FieldReservedQty holds the string denoting the reservedqty field in the database.
|
||||
FieldReservedQty = "reserved_qty"
|
||||
// FieldCrossDay holds the string denoting the crossday field in the database.
|
||||
FieldCrossDay = "cross_day"
|
||||
// FieldPlanDates holds the string denoting the plandates field in the database.
|
||||
FieldPlanDates = "plan_dates"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// Table holds the table name of the callpool in the database.
|
||||
Table = "call_pool"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for callpool fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldStationNo,
|
||||
FieldMaterialCode,
|
||||
FieldMaterialName,
|
||||
FieldUnit,
|
||||
FieldSnMode,
|
||||
FieldReqQty,
|
||||
FieldAdjQty,
|
||||
FieldSentQty,
|
||||
FieldReservedQty,
|
||||
FieldCrossDay,
|
||||
FieldPlanDates,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// MaterialCodeValidator is a validator for the "materialCode" field. It is called by the builders before save.
|
||||
MaterialCodeValidator func(string) error
|
||||
// DefaultMaterialName holds the default value on creation for the "materialName" field.
|
||||
DefaultMaterialName string
|
||||
// MaterialNameValidator is a validator for the "materialName" field. It is called by the builders before save.
|
||||
MaterialNameValidator func(string) error
|
||||
// DefaultUnit holds the default value on creation for the "unit" field.
|
||||
DefaultUnit string
|
||||
// UnitValidator is a validator for the "unit" field. It is called by the builders before save.
|
||||
UnitValidator func(string) error
|
||||
// DefaultSnMode holds the default value on creation for the "snMode" field.
|
||||
DefaultSnMode int
|
||||
// DefaultReqQty holds the default value on creation for the "reqQty" field.
|
||||
DefaultReqQty int
|
||||
// DefaultAdjQty holds the default value on creation for the "adjQty" field.
|
||||
DefaultAdjQty int
|
||||
// DefaultSentQty holds the default value on creation for the "sentQty" field.
|
||||
DefaultSentQty int
|
||||
// DefaultReservedQty holds the default value on creation for the "reservedQty" field.
|
||||
DefaultReservedQty int
|
||||
// DefaultCrossDay holds the default value on creation for the "crossDay" field.
|
||||
DefaultCrossDay bool
|
||||
// DefaultPlanDates holds the default value on creation for the "planDates" field.
|
||||
DefaultPlanDates string
|
||||
// PlanDatesValidator is a validator for the "planDates" field. It is called by the builders before save.
|
||||
PlanDatesValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updatedAt" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
|
||||
UpdateDefaultUpdatedAt func() time.Time
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the CallPool queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the stationNo field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialCode orders the results by the materialCode field.
|
||||
func ByMaterialCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaterialName orders the results by the materialName field.
|
||||
func ByMaterialName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaterialName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUnit orders the results by the unit field.
|
||||
func ByUnit(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUnit, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySnMode orders the results by the snMode field.
|
||||
func BySnMode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSnMode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReqQty orders the results by the reqQty field.
|
||||
func ByReqQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReqQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAdjQty orders the results by the adjQty field.
|
||||
func ByAdjQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAdjQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySentQty orders the results by the sentQty field.
|
||||
func BySentQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSentQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByReservedQty orders the results by the reservedQty field.
|
||||
func ByReservedQty(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldReservedQty, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCrossDay orders the results by the crossDay field.
|
||||
func ByCrossDay(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCrossDay, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPlanDates orders the results by the planDates field.
|
||||
func ByPlanDates(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPlanDates, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updatedAt field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,725 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package callpool
|
||||
|
||||
import (
|
||||
"bj_power_mes/ent/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||||
func StationNo(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "materialCode" field. It's identical to MaterialCodeEQ.
|
||||
func MaterialCode(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialName applies equality check predicate on the "materialName" field. It's identical to MaterialNameEQ.
|
||||
func MaterialName(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.
|
||||
func Unit(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// SnMode applies equality check predicate on the "snMode" field. It's identical to SnModeEQ.
|
||||
func SnMode(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// ReqQty applies equality check predicate on the "reqQty" field. It's identical to ReqQtyEQ.
|
||||
func ReqQty(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReqQty, v))
|
||||
}
|
||||
|
||||
// AdjQty applies equality check predicate on the "adjQty" field. It's identical to AdjQtyEQ.
|
||||
func AdjQty(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldAdjQty, v))
|
||||
}
|
||||
|
||||
// SentQty applies equality check predicate on the "sentQty" field. It's identical to SentQtyEQ.
|
||||
func SentQty(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// ReservedQty applies equality check predicate on the "reservedQty" field. It's identical to ReservedQtyEQ.
|
||||
func ReservedQty(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReservedQty, v))
|
||||
}
|
||||
|
||||
// CrossDay applies equality check predicate on the "crossDay" field. It's identical to CrossDayEQ.
|
||||
func CrossDay(v bool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldCrossDay, v))
|
||||
}
|
||||
|
||||
// PlanDates applies equality check predicate on the "planDates" field. It's identical to PlanDatesEQ.
|
||||
func PlanDates(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||||
func StationNoEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||||
func StationNoNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoIn applies the In predicate on the "stationNo" field.
|
||||
func StationNoIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||||
func StationNoNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldStationNo, vs...))
|
||||
}
|
||||
|
||||
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||||
func StationNoGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||||
func StationNoGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||||
func StationNoLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||||
func StationNoLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldStationNo, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "materialCode" field.
|
||||
func MaterialCodeEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeNEQ applies the NEQ predicate on the "materialCode" field.
|
||||
func MaterialCodeNEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeIn applies the In predicate on the "materialCode" field.
|
||||
func MaterialCodeIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeNotIn applies the NotIn predicate on the "materialCode" field.
|
||||
func MaterialCodeNotIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeGT applies the GT predicate on the "materialCode" field.
|
||||
func MaterialCodeGT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeGTE applies the GTE predicate on the "materialCode" field.
|
||||
func MaterialCodeGTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLT applies the LT predicate on the "materialCode" field.
|
||||
func MaterialCodeLT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLTE applies the LTE predicate on the "materialCode" field.
|
||||
func MaterialCodeLTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContains applies the Contains predicate on the "materialCode" field.
|
||||
func MaterialCodeContains(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContains(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasPrefix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "materialCode" field.
|
||||
func MaterialCodeHasSuffix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEqualFold applies the EqualFold predicate on the "materialCode" field.
|
||||
func MaterialCodeEqualFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEqualFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContainsFold applies the ContainsFold predicate on the "materialCode" field.
|
||||
func MaterialCodeContainsFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContainsFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialNameEQ applies the EQ predicate on the "materialName" field.
|
||||
func MaterialNameEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameNEQ applies the NEQ predicate on the "materialName" field.
|
||||
func MaterialNameNEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameIn applies the In predicate on the "materialName" field.
|
||||
func MaterialNameIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameNotIn applies the NotIn predicate on the "materialName" field.
|
||||
func MaterialNameNotIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldMaterialName, vs...))
|
||||
}
|
||||
|
||||
// MaterialNameGT applies the GT predicate on the "materialName" field.
|
||||
func MaterialNameGT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameGTE applies the GTE predicate on the "materialName" field.
|
||||
func MaterialNameGTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLT applies the LT predicate on the "materialName" field.
|
||||
func MaterialNameLT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameLTE applies the LTE predicate on the "materialName" field.
|
||||
func MaterialNameLTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContains applies the Contains predicate on the "materialName" field.
|
||||
func MaterialNameContains(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContains(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasPrefix applies the HasPrefix predicate on the "materialName" field.
|
||||
func MaterialNameHasPrefix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasPrefix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameHasSuffix applies the HasSuffix predicate on the "materialName" field.
|
||||
func MaterialNameHasSuffix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasSuffix(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameEqualFold applies the EqualFold predicate on the "materialName" field.
|
||||
func MaterialNameEqualFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEqualFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// MaterialNameContainsFold applies the ContainsFold predicate on the "materialName" field.
|
||||
func MaterialNameContainsFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContainsFold(FieldMaterialName, v))
|
||||
}
|
||||
|
||||
// UnitEQ applies the EQ predicate on the "unit" field.
|
||||
func UnitEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitNEQ applies the NEQ predicate on the "unit" field.
|
||||
func UnitNEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitIn applies the In predicate on the "unit" field.
|
||||
func UnitIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitNotIn applies the NotIn predicate on the "unit" field.
|
||||
func UnitNotIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldUnit, vs...))
|
||||
}
|
||||
|
||||
// UnitGT applies the GT predicate on the "unit" field.
|
||||
func UnitGT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitGTE applies the GTE predicate on the "unit" field.
|
||||
func UnitGTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLT applies the LT predicate on the "unit" field.
|
||||
func UnitLT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitLTE applies the LTE predicate on the "unit" field.
|
||||
func UnitLTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContains applies the Contains predicate on the "unit" field.
|
||||
func UnitContains(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContains(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasPrefix applies the HasPrefix predicate on the "unit" field.
|
||||
func UnitHasPrefix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasPrefix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitHasSuffix applies the HasSuffix predicate on the "unit" field.
|
||||
func UnitHasSuffix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasSuffix(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitEqualFold applies the EqualFold predicate on the "unit" field.
|
||||
func UnitEqualFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEqualFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// UnitContainsFold applies the ContainsFold predicate on the "unit" field.
|
||||
func UnitContainsFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContainsFold(FieldUnit, v))
|
||||
}
|
||||
|
||||
// SnModeEQ applies the EQ predicate on the "snMode" field.
|
||||
func SnModeEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeNEQ applies the NEQ predicate on the "snMode" field.
|
||||
func SnModeNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeIn applies the In predicate on the "snMode" field.
|
||||
func SnModeIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldSnMode, vs...))
|
||||
}
|
||||
|
||||
// SnModeNotIn applies the NotIn predicate on the "snMode" field.
|
||||
func SnModeNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldSnMode, vs...))
|
||||
}
|
||||
|
||||
// SnModeGT applies the GT predicate on the "snMode" field.
|
||||
func SnModeGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeGTE applies the GTE predicate on the "snMode" field.
|
||||
func SnModeGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeLT applies the LT predicate on the "snMode" field.
|
||||
func SnModeLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// SnModeLTE applies the LTE predicate on the "snMode" field.
|
||||
func SnModeLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldSnMode, v))
|
||||
}
|
||||
|
||||
// ReqQtyEQ applies the EQ predicate on the "reqQty" field.
|
||||
func ReqQtyEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReqQty, v))
|
||||
}
|
||||
|
||||
// ReqQtyNEQ applies the NEQ predicate on the "reqQty" field.
|
||||
func ReqQtyNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldReqQty, v))
|
||||
}
|
||||
|
||||
// ReqQtyIn applies the In predicate on the "reqQty" field.
|
||||
func ReqQtyIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldReqQty, vs...))
|
||||
}
|
||||
|
||||
// ReqQtyNotIn applies the NotIn predicate on the "reqQty" field.
|
||||
func ReqQtyNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldReqQty, vs...))
|
||||
}
|
||||
|
||||
// ReqQtyGT applies the GT predicate on the "reqQty" field.
|
||||
func ReqQtyGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldReqQty, v))
|
||||
}
|
||||
|
||||
// ReqQtyGTE applies the GTE predicate on the "reqQty" field.
|
||||
func ReqQtyGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldReqQty, v))
|
||||
}
|
||||
|
||||
// ReqQtyLT applies the LT predicate on the "reqQty" field.
|
||||
func ReqQtyLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldReqQty, v))
|
||||
}
|
||||
|
||||
// ReqQtyLTE applies the LTE predicate on the "reqQty" field.
|
||||
func ReqQtyLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldReqQty, v))
|
||||
}
|
||||
|
||||
// AdjQtyEQ applies the EQ predicate on the "adjQty" field.
|
||||
func AdjQtyEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldAdjQty, v))
|
||||
}
|
||||
|
||||
// AdjQtyNEQ applies the NEQ predicate on the "adjQty" field.
|
||||
func AdjQtyNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldAdjQty, v))
|
||||
}
|
||||
|
||||
// AdjQtyIn applies the In predicate on the "adjQty" field.
|
||||
func AdjQtyIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldAdjQty, vs...))
|
||||
}
|
||||
|
||||
// AdjQtyNotIn applies the NotIn predicate on the "adjQty" field.
|
||||
func AdjQtyNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldAdjQty, vs...))
|
||||
}
|
||||
|
||||
// AdjQtyGT applies the GT predicate on the "adjQty" field.
|
||||
func AdjQtyGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldAdjQty, v))
|
||||
}
|
||||
|
||||
// AdjQtyGTE applies the GTE predicate on the "adjQty" field.
|
||||
func AdjQtyGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldAdjQty, v))
|
||||
}
|
||||
|
||||
// AdjQtyLT applies the LT predicate on the "adjQty" field.
|
||||
func AdjQtyLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldAdjQty, v))
|
||||
}
|
||||
|
||||
// AdjQtyLTE applies the LTE predicate on the "adjQty" field.
|
||||
func AdjQtyLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldAdjQty, v))
|
||||
}
|
||||
|
||||
// SentQtyEQ applies the EQ predicate on the "sentQty" field.
|
||||
func SentQtyEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// SentQtyNEQ applies the NEQ predicate on the "sentQty" field.
|
||||
func SentQtyNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// SentQtyIn applies the In predicate on the "sentQty" field.
|
||||
func SentQtyIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldSentQty, vs...))
|
||||
}
|
||||
|
||||
// SentQtyNotIn applies the NotIn predicate on the "sentQty" field.
|
||||
func SentQtyNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldSentQty, vs...))
|
||||
}
|
||||
|
||||
// SentQtyGT applies the GT predicate on the "sentQty" field.
|
||||
func SentQtyGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// SentQtyGTE applies the GTE predicate on the "sentQty" field.
|
||||
func SentQtyGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// SentQtyLT applies the LT predicate on the "sentQty" field.
|
||||
func SentQtyLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// SentQtyLTE applies the LTE predicate on the "sentQty" field.
|
||||
func SentQtyLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldSentQty, v))
|
||||
}
|
||||
|
||||
// ReservedQtyEQ applies the EQ predicate on the "reservedQty" field.
|
||||
func ReservedQtyEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldReservedQty, v))
|
||||
}
|
||||
|
||||
// ReservedQtyNEQ applies the NEQ predicate on the "reservedQty" field.
|
||||
func ReservedQtyNEQ(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldReservedQty, v))
|
||||
}
|
||||
|
||||
// ReservedQtyIn applies the In predicate on the "reservedQty" field.
|
||||
func ReservedQtyIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldReservedQty, vs...))
|
||||
}
|
||||
|
||||
// ReservedQtyNotIn applies the NotIn predicate on the "reservedQty" field.
|
||||
func ReservedQtyNotIn(vs ...int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldReservedQty, vs...))
|
||||
}
|
||||
|
||||
// ReservedQtyGT applies the GT predicate on the "reservedQty" field.
|
||||
func ReservedQtyGT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldReservedQty, v))
|
||||
}
|
||||
|
||||
// ReservedQtyGTE applies the GTE predicate on the "reservedQty" field.
|
||||
func ReservedQtyGTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldReservedQty, v))
|
||||
}
|
||||
|
||||
// ReservedQtyLT applies the LT predicate on the "reservedQty" field.
|
||||
func ReservedQtyLT(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldReservedQty, v))
|
||||
}
|
||||
|
||||
// ReservedQtyLTE applies the LTE predicate on the "reservedQty" field.
|
||||
func ReservedQtyLTE(v int) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldReservedQty, v))
|
||||
}
|
||||
|
||||
// CrossDayEQ applies the EQ predicate on the "crossDay" field.
|
||||
func CrossDayEQ(v bool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldCrossDay, v))
|
||||
}
|
||||
|
||||
// CrossDayNEQ applies the NEQ predicate on the "crossDay" field.
|
||||
func CrossDayNEQ(v bool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldCrossDay, v))
|
||||
}
|
||||
|
||||
// PlanDatesEQ applies the EQ predicate on the "planDates" field.
|
||||
func PlanDatesEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesNEQ applies the NEQ predicate on the "planDates" field.
|
||||
func PlanDatesNEQ(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesIn applies the In predicate on the "planDates" field.
|
||||
func PlanDatesIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldPlanDates, vs...))
|
||||
}
|
||||
|
||||
// PlanDatesNotIn applies the NotIn predicate on the "planDates" field.
|
||||
func PlanDatesNotIn(vs ...string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldPlanDates, vs...))
|
||||
}
|
||||
|
||||
// PlanDatesGT applies the GT predicate on the "planDates" field.
|
||||
func PlanDatesGT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesGTE applies the GTE predicate on the "planDates" field.
|
||||
func PlanDatesGTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesLT applies the LT predicate on the "planDates" field.
|
||||
func PlanDatesLT(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesLTE applies the LTE predicate on the "planDates" field.
|
||||
func PlanDatesLTE(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesContains applies the Contains predicate on the "planDates" field.
|
||||
func PlanDatesContains(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContains(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesHasPrefix applies the HasPrefix predicate on the "planDates" field.
|
||||
func PlanDatesHasPrefix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasPrefix(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesHasSuffix applies the HasSuffix predicate on the "planDates" field.
|
||||
func PlanDatesHasSuffix(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldHasSuffix(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesEqualFold applies the EqualFold predicate on the "planDates" field.
|
||||
func PlanDatesEqualFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEqualFold(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// PlanDatesContainsFold applies the ContainsFold predicate on the "planDates" field.
|
||||
func PlanDatesContainsFold(v string) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldContainsFold(FieldPlanDates, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.CallPool {
|
||||
return predicate.CallPool(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.CallPool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.CallPool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.CallPool) predicate.CallPool {
|
||||
return predicate.CallPool(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user